Re: sendmail library ?!

2013-11-18 Thread Grant Edwards
sendmail library: def sendmail(frm,to,msg): with os.popen(sendmail -f '%s' '%s' % (frm,to), w) as p: p.write(msg) That works on my system, but YMMV. You might like more options (like automagically parsing frm/to address from msg headers or whatnot), and those are left as an exercise

Re: sendmail library ?!

2013-11-18 Thread Dan Stromberg
On Tue, Nov 12, 2013 at 8:52 PM, Tamer Higazi th9...@googlemail.com wrote: Hi people! I am looking for a python library that does mailing directly through sendmail. I use: http://stromberg.dnsalias.org/svn/mailer/trunk/mailer.py -- https://mail.python.org/mailman/listinfo/python-list

Re: sendmail library ?!

2013-11-17 Thread Tim Roberts
Tamer Higazi th9...@googlemail.com wrote: I am looking for a python library that does mailing directly through sendmail. When I look into the docs, I see only an smtlip library but nothing that could serve with sendmail or postfix. Any ideas ?! Remember that import smtplib s =

sendmail library ?!

2013-11-12 Thread Tamer Higazi
Hi people! I am looking for a python library that does mailing directly through sendmail. When I look into the docs, I see only an smtlip library but nothing that could serve with sendmail or postfix. Any ideas ?! Thanks Tamer -- https://mail.python.org/mailman/listinfo/python-list

Re: sendmail library ?!

2013-11-12 Thread Cameron Simpson
On 13Nov2013 05:52, Tamer Higazi th9...@googlemail.com wrote: I am looking for a python library that does mailing directly through sendmail. When I look into the docs, I see only an smtlip library but nothing that could serve with sendmail or postfix. Use the subprocess module. Pipe to: