Skip to content

Extension to smtplib.SMTP class, and custom Django EmailBackend that allows extra parameters in starttls

Notifications You must be signed in to change notification settings

cybercase/django-smtp-starttls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extension to smtplib.SMTP class, and custom Django EmailBackend that allows extra parameters in starttls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages