August Mueller <[EMAIL PROTECTED]> added the comment:
For completeness, if anyone runs across this in the future, the following seems
to work for sending utf-8 mail
in python 3:
import smtplib
import email.mime.text
msg = email.mime.text.MIMEText("Ümlaut", _charse
August Mueller <[EMAIL PROTECTED]> added the comment:
Encoding the message first doesn't work either:
>>> import smtplib
>>> server = smtplib.SMTP("localhost")
>>> server.sendmail("[EMAIL PROTECTED]", "[EMAIL PROTECTED]",
>
New submission from August Mueller <[EMAIL PROTECTED]>:
smtplib requires that messages being sent be in ascii, and throws an exception
otherwise.
Python 2.6 doesn't require this. Here's the diff where it was introduced:
http://svn.python.org/view/python/branches/py3k/Lib/smtp