id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 17471,Add ability to use smtplib.SMTP_SSL connection when sending email,dje,nobody,"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.",New feature,closed,Core (Mail),dev,Normal,fixed,smtp sprints-django-ar,sorin Simon Charette senko,Accepted,1,1,1,0,1,0