Jeff Hull <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue6327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com