This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jrlevine
Recipients jrlevine
Date 2021-05-30.19:25:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622402720.57.0.196040289354.issue44269@roundup.psfhosted.org>
In-reply-to
Content
In an EAI (SMTPUTF8) mail session, AUTH usernames and passwords can be UTF-8, not just ASCII.

The fix is easy.  In smtplib.py, in three places in the auth() and auth_cram_md5() routines change ".encode('ascii')" to ".encode(self.command_encoding)"

I have tried this with EAI mail servers in India and China to be sure it works.
History
Date User Action Args
2021-05-30 19:25:20jrlevinesetrecipients: + jrlevine
2021-05-30 19:25:20jrlevinesetmessageid: <1622402720.57.0.196040289354.issue44269@roundup.psfhosted.org>
2021-05-30 19:25:20jrlevinelinkissue44269 messages
2021-05-30 19:25:20jrlevinecreate