I use django backend to send email (but really django is irrevelant in this case), I can login via standalone client, but not via smtplib. I keep getting:
SMTPAuthenticationError (535, '5.7.0 authentication failed')
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In my case It seems that the server lied it responded following string on hello request:
in which it annouced it supports
CRAM-MD5authentication method, which it didn’t.Since I was in a hurry and resolving this issue with admin would end in missing the deadline, I had to patch SMTP class to prefer
PLAINauthentication method. To do this you need to create subclass ofSMTP_SSLand overrideloginmethod, just copyloginfrom SMTP class changing one line.Change line that says:
to:
Anyway I posted the patched class: http://pastebin.com/ecL9A3P4.