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
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
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 =
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
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: