Commit 49c05d39 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #572031: AUTH method LOGIN for smtplib

(most of the patch hides in rev. 1.59). Backported to 2.2.
parent b03fac2d
......@@ -574,7 +574,7 @@ class SMTP:
"%s %s" % (AUTH_LOGIN, encode_base64(user, eol="")))
if code != 334:
raise SMTPAuthenticationError(code, resp)
(code, resp) = self.docmd(encode_base64(user, eol=""))
(code, resp) = self.docmd(encode_base64(password, eol=""))
elif authmethod is None:
raise SMTPException("No suitable authentication method found.")
if code not in [235, 503]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment