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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to