R. David Murray added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9208>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to