[issue44269] smtplib AUTH command doesn't handle EAI arguments
John L
report at bugs.python.org
Sun May 30 15:25:20 EDT 2021
New submission from John L <johnl at taugh.com>:
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.
----------
components: Library (Lib)
messages: 394779
nosy: jrlevine
priority: normal
severity: normal
status: open
title: smtplib AUTH command doesn't handle EAI arguments
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44269>
_______________________________________
More information about the Python-bugs-list
mailing list