https://github.com/cybercase/django-smtp-starttls
Extension to smtplib.SMTP class, and custom Django EmailBackend that allows extra parameters in starttls
https://github.com/cybercase/django-smtp-starttls
Last synced: 9 months ago
JSON representation
Extension to smtplib.SMTP class, and custom Django EmailBackend that allows extra parameters in starttls
- Host: GitHub
- URL: https://github.com/cybercase/django-smtp-starttls
- Owner: cybercase
- Created: 2014-02-28T09:42:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-28T10:36:10.000Z (over 12 years ago)
- Last Synced: 2025-02-14T14:51:34.988Z (over 1 year ago)
- Language: Python
- Size: 121 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
If you bumped into this error while using your django EmailBackend:
"Connection unexpectedly closed: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1504)"
here you can find a quite clear description of the problem, and solution.
http://stackoverflow.com/questions/17434143/hotmail-ssl3-version-number-error-using-smtp
And if you don't like the idea of "copying" the entire smtplib.py, this package is for you!
Usage:
in your settings.py set:
EMAIL_BACKEND = 'django_smtp_starttls.SSLv3EmailBackend' # or SSLv23EmailBackend, TLSv1EmailBackend