Patch #572031: AUTH method LOGIN for smtplib

(most of the patch hides in rev. 1.59). Backported to 2.2.
This commit is contained in:
Martin v. Löwis 2002-10-06 17:55:08 +00:00
parent b03fac2ded
commit 49c05d39e3
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ def encode_plain(user, password):
"%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]: