Yahoo SMTP

Peter L Hansen peter at
Mon Oct 18 02:13:32 CEST 2004

Josiah Carlson wrote:
> Checking the source for, 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...


More information about the Python-list mailing list