[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [msmtp-users] sending email from python?
On Mon, Jul 07, 2008 at 09:17:41PM +0200,
C.Nobs <public@...156...> wrote
a message of 78 lines which said:
> >>> p =
> >>> subprocess.Popen(['msmtp','-t'],stdin=subprocess.PIPE,stdout=subprocess.PIPE)
> >>> p.stdin.writelines(['To: public@...156...', 'Subject: testing',
> >>> '', ''])
Why not using the standard Python module "smtplib"
<http://docs.python.org/lib/module-smtplib.html>?
This would make your
program independent of msmtp.