SMTP with Python 1.6

Donn Cave donn at u.washington.edu
Mon Jun 26 12:36:26 EDT 2000


Quoth ge at nowhere.none (Grant Edwards):
| In article <8j7n8d$4u64$1 at www.univie.ac.at>, Matthias Huening wrote:
|>> #!c:\python\python.exe
|>>
|>> import cgi, smtplib
|>> s=smtplib.SMTP("localhost")
|>
|> 'Localhost' will not work.
|> You have to make this the address of a valid SMTP-server.
|
| Gosh, on all my computers, "localhost" is the address of a valid
| SMTP-server.  Are your computers all broken?

Some choice, broken vs. broken into.

SMTP service is only required for hosts that accept or redistribute mail.
If you know "localhost" is going to work, that's fine, but in the general
case it's liable not to, and sys-admin isn't even likely to be very
sympathetic.

	Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list