If I want to send mail not via SMTP, but through sendmail, is there a library for python that encapsulates this process?
Even better, is there a good library that abstracts out the entire sendmail -versus-smtp selection?
I will run this script on a bunch of unix hosts, only some of which listen on localhost: 25; some of them are part of embedded systems and cannot be configured to accept SMTP.
As part of Good Practice, I would really like the library itself to take care of the vulnerabilities associated with nesting headers, so just drop the line to popen('/usr/bin/sendmail', 'w') little closer to the text than I would like .
If the answer is "go write library", let it be like this :-)
python email sendmail
Nate Sep 16 '08 at 15:46 2008-09-16 15:46
source share