Yahoo SMTP

Peter L Hansen peter at engcorp.com
Sun Oct 17 20:13:32 EDT 2004


Josiah Carlson wrote:
> Checking the source for smtplib.py, you must pass a port to
> smtplib.SMTP() if you pass a host, as it defaults to 0.

If you read just a tad farther, you'll see the line

     if not port: port = SMTP_PORT

where SMTP_PORT is of course 25...

-Peter



More information about the Python-list mailing list