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.

classification
Title: smtplib send_message does not correctly handle unicode addresses if message uses EmailPolicy
Type: behavior Stage: needs patch
Components: email Versions: Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: barry, r.david.murray
Priority: normal Keywords:

Created on 2016-09-06 18:43 by r.david.murray, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg274597 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-09-06 18:43
In rewriting the examples in the email docs to use the new policies, I discovered that smtplib has a bug when handling a message that uses an EmailPolicy derived policy if the addresses contain unicode characters.  Currently it is extracting the addresses as unicode strings instead of transport encoded strings.  It needs a special case to handle EmailPolicy Messages.
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 72164
2016-09-06 18:43:52r.david.murraycreate