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.

classification
Title: Should be able to specify SSL version for smtplib
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, pitrou, yasaharu
Priority: normal Keywords:

Created on 2013-07-05 20:55 by yasaharu, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg192358 - (view) Author: YS (yasaharu) Date: 2013-07-05 20:55
Currently, smtplib is not able to connect to hotmail, giving an SSL version error (at least on some platfroms). See http://stackoverflow.com/q/17434143/429850 and http://stackoverflow.com/q/17011816/429850. Perhaps there should be an option like smtplib.SMTP(ssl_version=SSLV3)?
msg192364 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-07-05 22:07
As this counts as a new feature it can't be implemented in Python 2.7. Only fixes are applied to 2.7. You have to roll your own subclass that overwrites starttls() or _get_socket(). I'm sorry for the inconvenience.

Starting with Python 3.3 the methods support SSLContext object as argument. http://docs.python.org/3/library/smtplib.html#smtplib.SMTP.starttls
History
Date User Action Args
2022-04-11 14:57:47adminsetgithub: 62571
2013-07-05 22:07:15christian.heimessetstatus: open -> closed

nosy: + christian.heimes, pitrou
messages: + msg192364

resolution: out of date
stage: resolved
2013-07-05 20:55:29yasaharucreate