SMTP with Python 1.6

Matthias Huening matthias.huening at univie.ac.at
Mon Jun 26 09:51:37 EDT 2000


> #!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.

> s.quit;
>

Should be s.quit()


Hope this helps.

Matthias

--
matthias.huening at univie.ac.at
http://www.ned.univie.ac.at/dt/







More information about the Python-list mailing list