msmtp in python

7segment 7segment at live.com
Sun Sep 23 05:23:40 EDT 2012


Hi. 

I have written a program to send email using python. However, I want to 
use msmtp for delegating the sending to my gmail account. So this part 
should be changed but I have no idea how! In theory the "sendmail" 
function should automatically call msmtp, but i don't know how to define 
"s" then.

s = smtplib.SMTP('localhost')
s.sendmail(me, family, msg.as_string())
s.quit()

Any help would be appreciated!



More information about the Python-list mailing list