[Tutor] email content-type: text/plain

shawn bright nephish at gmail.com
Thu Nov 16 22:07:41 CET 2006


hey there all,
i am using the email package and the phone provider i am trying to get a
text message thru has sent me an email that says that they are looking for a
tag that says 'content-type text/plain'

i have tried about everything i can think of to get it in there, but
everything i have tried has failed.

here is what i have so far:
address = 'someplace at someplace.com'
message = 'some text that needs to be delivered via text message'
msg = MIMEText(message)
msg['Subject'] = 'pivots'
msg['From'] = 'l11 at xit.net'
msg['To'] = address
server.sendmail(msg['From'],msg['To'], msg.as_string())

any ideas ?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061116/e60a1765/attachment-0001.htm 


More information about the Tutor mailing list