From: Martin v. Löwis Date: Sun, 6 Oct 2002 17:55:08 +0000 (+0000) Subject: Patch #572031: AUTH method LOGIN for smtplib X-Git-Tag: v2.3c1~3870 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49c05d39e3a5f609a13322bbbbd507a2bc3fc252;p=thirdparty%2FPython%2Fcpython.git Patch #572031: AUTH method LOGIN for smtplib (most of the patch hides in rev. 1.59). Backported to 2.2. --- diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 066fd9c8e2d5..1af127f0675b 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -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]: