[issue36093] UnicodeEncodeError raise from smtplib.verify() method
Windson Yang
report at bugs.python.org
Sat Feb 23 03:04:47 EST 2019
Windson Yang <wiwindson at outlook.com> added the comment:
Btw, from the docs https://docs.python.org/3/library/smtplib.html#smtplib.SMTP.sendmail
> msg may be a string containing characters in the ASCII range, or a byte string. A string is encoded to bytes using the ascii codec, and lone \r and \n characters are converted to \r\n characters. A byte string is not modified.
So we can't send non-ASCII msg using send_mail(), is this expected behavior?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36093>
_______________________________________
More information about the Python-bugs-list
mailing list