Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

msmtp in python

34 views
Skip to first unread message

7segment

unread,
Sep 23, 2012, 5:23:40 AM9/23/12
to
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!
Message has been deleted
0 new messages