New submission from Antoine Pitrou <pit...@free.fr>: 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) ---------- components: Library (Lib) keywords: easy messages: 134478 nosy: kasun, pitrou priority: normal severity: normal stage: needs patch status: open title: SMTP_SSL doesn't use port 465 by default type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11927> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com