Jeff Hull <jsh2...@gmail.com> added the comment: I also have this problem with text getting replaced with the exclamation point.
I am using this class. from email.MIMEText import MIMEText Perhaps it didn't work for you because you didn't send it via email. try this code msgAlternative = MIMEMultipart('alternative') msgText = MIMEText(text, 'html') msgAlternative.attach(msgText) msg.attach(msgAlternative) mailServer = smtplib.SMTP() mailServer.connect(serverURL) mailServer.login(user, pass) mailServer.sendmail(sender,to, msg.as_string()) mailServer.quit() ---------- nosy: +Jeff.Hull _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6327> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com