This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients kasun, pitrou
Date 2011-04-26.16:48:19
SpamBayes Score 9.569518e-06
Marked as misclassified No
Message-id <1303836501.95.0.366662026013.issue11927@psf.upfronthosting.co.za>
In-reply-to
Content
The SMTP_SSL doc says “If port is omitted, the standard SMTP-over-SSL port (465) is used”, but actually port 25 is used by default. The fix is trivial: make "default_port" a class attribute (in both SMTP and SMTP_SSL) instead of setting it inside the constructor.

test_smtpnet uses an explicit port to connect to gmail, which is why it doesn't exhibit the issue.

(Kasun, I'm adding you since you might be interested. Sorry if it isn't the case)
History
Date User Action Args
2011-04-26 16:48:22pitrousetrecipients: + pitrou, kasun
2011-04-26 16:48:21pitrousetmessageid: <1303836501.95.0.366662026013.issue11927@psf.upfronthosting.co.za>
2011-04-26 16:48:19pitroulinkissue11927 messages
2011-04-26 16:48:19pitroucreate