[issue11927] SMTP_SSL doesn't use port 465 by default

Antoine Pitrou report at bugs.python.org
Tue Apr 26 18:48:22 CEST 2011


New submission from Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11927>
_______________________________________


More information about the Python-bugs-list mailing list