[Tutor] Sending Mail

linuxian iandsd pylinuxian at gmail.com
Tue Apr 22 13:12:34 CEST 2008


i can send email w/ no problem using this :

import smtplib
smtp = smtplib.SMTP()
smtp.connect('smtp_server_here')
smtp.login('user_name', 'password')
smtp.sendmail(strFrom, strTo, msgRoot.as_string())
smtp.quit()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080422/7c48fc9d/attachment.htm>


More information about the Tutor mailing list