diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-10-06 17:55:08 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-10-06 17:55:08 (GMT) |
commit | 49c05d39e3a5f609a13322bbbbd507a2bc3fc252 (patch) | |
tree | 3e527dd90932cefbcdfe734dfb1bef53d7364d90 /Lib/smtplib.py | |
parent | b03fac2ded952e87e425bc20ffd9aa0d06d7c9cd (diff) | |
download | cpython-49c05d39e3a5f609a13322bbbbd507a2bc3fc252.zip cpython-49c05d39e3a5f609a13322bbbbd507a2bc3fc252.tar.gz cpython-49c05d39e3a5f609a13322bbbbd507a2bc3fc252.tar.bz2 |
Patch #572031: AUTH method LOGIN for smtplib
(most of the patch hides in rev. 1.59). Backported to 2.2.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-x | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 066fd9c..1af127f 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]: |