From 49c05d39e3a5f609a13322bbbbd507a2bc3fc252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 6 Oct 2002 17:55:08 +0000 Subject: [PATCH] Patch #572031: AUTH method LOGIN for smtplib (most of the patch hides in rev. 1.59). Backported to 2.2. --- Lib/smtplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 066fd9c8e2d..1af127f0675 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -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]: