smtp question

Kartic kartic.krishnamurthy at gmail.com
Wed Jan 5 14:25:03 EST 2005


Philippe,

Looks like the problem lies where you have added the Subject header.
You have terminated it with a \n\n and then your From and To headers.
You may want to rewrite it as:

server.sendmail(fromaddr, toaddrs, 'Subject:from python\r\n'+msg)

Why dont you consider using the email module  -
http://python.org/doc/2.4/lib/module-email.html ? It is elegant and
easy to use.

Thank you,
--Kartic




More information about the Python-list mailing list