Message121361
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() |
|
Date |
User |
Action |
Args |
2010-11-17 15:32:05 | Jeff.Hull | set | recipients:
+ Jeff.Hull, amaury.forgeotdarc, r.david.murray, martijntje |
2010-11-17 15:32:05 | Jeff.Hull | set | messageid: <1290007925.3.0.941598640021.issue6327@psf.upfronthosting.co.za> |
2010-11-17 15:32:03 | Jeff.Hull | link | issue6327 messages |
2010-11-17 15:32:03 | Jeff.Hull | create | |
|