New submission from John L <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue44269>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com