popen(), sendmail: Success?
Chuck Swiger
cswiger at mac.com
Sun Apr 13 16:47:28 EDT 2003
Martin Bless wrote:
[ ... ]
> Unfortunately Puretec, a big german provider with several million
> accounts changed the rules recently when they moved to their new and
> wonderful computing centre. All of a sudden
> S=smtplib.SMTP('any.smtp.server') would bring about error 111,
> "connection refused".
Sounds like the ISP is blocking outbound SMTP via a firewall.
> Connecting to 'localhost' is an interesting idea I hadn't thought of
> - I'll give it a try. But I'm not very optimistic.
Ask Puretec's tech support which SMTP server you should use for your
program to send mail. Let your ISP worry about it from there.
[ ... ]
> (3) Looks like I only have to use popen2.popen3(...) if I want to
> retrieve sendmails stdout and stderr streams. Maybe I give it a try
> and do some experimentation on what's possible in this specific cgi
> environment.
Yes. You might run "sendmail -v -t _msg_" by hand to see whether the
additional debugging info generated is worth the coding effort.
--
-Chuck
More information about the Python-list
mailing list