Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29801
| From | 7segment <7segment@live.com> |
|---|---|
| Subject | msmtp in python |
| Newsgroups | comp.lang.python |
| Message-ID | <TPOdnevErbCBSMPNnZ2dnUVZ_hmdnZ2d@giganews.com> (permalink) |
| Date | 2012-09-23 04:23 -0500 |
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!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
msmtp in python 7segment <7segment@live.com> - 2012-09-23 04:23 -0500 Re: msmtp in python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-23 12:47 -0400
csiph-web