SMTP
Sophie Coon
sophiec at scripps.edu
Thu Aug 16 12:47:31 EDT 2001
That is how I do it :
subject = "My subject"
body = "My message"
msg = "Subject:"+subject+"\n"+body
server = smtplib.SMTP('localhost')
server.sendmail(fromaddress, toaddress, msg)
server.quit()
Hope that helps
Sophie
############################################################
Sophie COON The Scripps Research Institute
Research Programmer III Molecular Graphics Laboratory
10550 North Torrey Pines Road
Phone: (858) 784-9556 La Jolla, CA 92037
Fax : (858) 784-2860
############################################################
More information about the Python-list
mailing list