#17471: Using TLS and port 465 for SMTP email causing Django to hang sending.
-------------------------------+--------------------
Reporter: dje | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.3
Severity: Normal | Keywords: smtp
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
There was a ticket opened three years ago to report this issue and it was
brushed off with no investigation:
https://code.djangoproject.com/ticket/9575. I've attached my patch which
completely resolved the problem on my local machine. The problem seems to
arise when using TLS, with username/password and port 465. I didn't have
any servers with a port other than 465 to test with, but the previous bug
report mentioned changing the port worked for them.[[BR]]
To reproduce the issue, I'd recommend using Gmail's servers (since they
are free):[[BR]]
EMAIL_HOST_USER = 'user'[[BR]]
EMAIL_HOST_PASSWORD = 'pass'[[BR]]
EMAIL_USE_TLS = True[[BR]]
EMAIL_HOST = 'smtp.gmail.com'[[BR]]
EMAIL_PORT = 465[[BR]]
The servers I've tested it against are not just Gmail, so this is clearly
not Google's issue. There may be an issue with the underlying Python SMTP
library, but patching this in Django was the quickest way for me to get my
project back up and running.
--
Ticket URL: <https://code.djangoproject.com/ticket/17471>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.