smtplib (111, 'Connection refused')
Tim Williams
listserver at tdw.net
Fri Sep 17 17:08:55 EDT 2004
----- Original Message -----
From: "Josh Close" <narshe at gmail.com>
> import smtplib
>
> mail = smtplib.SMTP('localhost')
> mail.send('me','user at domain.tld','message goes here')
> mail.quit()
>
> but this fails at the smtplib.SMTP() line on one box, but not on another.
>
You either only have an SMTP server running on one box (the successful one),
or localhost isn't configured properly on the failing machine
More information about the Python-list
mailing list