This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jeff.Hull
Recipients Jeff.Hull, amaury.forgeotdarc, martijntje, r.david.murray
Date 2010-11-17.15:32:03
SpamBayes Score 0.0003976473
Marked as misclassified No
Message-id <1290007925.3.0.941598640021.issue6327@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2010-11-17 15:32:05Jeff.Hullsetrecipients: + Jeff.Hull, amaury.forgeotdarc, r.david.murray, martijntje
2010-11-17 15:32:05Jeff.Hullsetmessageid: <1290007925.3.0.941598640021.issue6327@psf.upfronthosting.co.za>
2010-11-17 15:32:03Jeff.Hulllinkissue6327 messages
2010-11-17 15:32:03Jeff.Hullcreate