Message252931
In 3.4/3.5 a better fix would be to use EmailMessage instead of Message, and smtp.send_message instead of smtp.sendmail. That will do the right thing, where "the right thing" is defined as defaulting to utf-8 for both headers and body. A specific application might want other defaults, in which case one should proceed as Vinay suggests.
You could open a new issue requesting the use of EmailMessage/send_message in python3 logging if you want to pursue this. Note that this would also allow unicode in the display name part of the addresses. |
|
Date |
User |
Action |
Args |
2015-10-13 13:36:24 | r.david.murray | set | recipients:
+ r.david.murray, vinay.sajip, norbidur, cjw296, simon04 |
2015-10-13 13:36:24 | r.david.murray | set | messageid: <1444743384.13.0.338761664594.issue9208@psf.upfronthosting.co.za> |
2015-10-13 13:36:24 | r.david.murray | link | issue9208 messages |
2015-10-13 13:36:24 | r.david.murray | create | |
|