[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2008-11-25 Thread August Mueller
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

[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2008-11-23 Thread August Mueller
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]", >

[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2008-11-23 Thread August Mueller
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