[Django] #31618: SMTPServerDisconnected at /accounts/send_email Connection unexpectedly closed

93 views
Skip to first unread message

Django

unread,
May 22, 2020, 5:18:33 PM5/22/20
to django-...@googlegroups.com
#31618: SMTPServerDisconnected at /accounts/send_email Connection unexpectedly
closed
-------------------------------------+-------------------------------------
Reporter: bdossul | Owner: (none)
Type: | Status: new
Uncategorized |
Component: Error | Version: 3.0
reporting |
Severity: Normal | Keywords: Django, SMTP, GMAIL
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I am currently experiencing this struggle. I did the following code:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'xxxx...@gmail.com'
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASSWORD')
EMAIL_USE_TLS = True

As for 'EMAIL_PASSWORD' - I already set the EMAIL_PASSWORD environment
variable in the shell that’s running runserver. I kept ending up receiving
the SMTP error below: smtplib.SMTPServerDisconnected: Connection
unexpectedly closed when I tried to run my Django - sending email using
gmail. Am I missing something?
It looks like I cant get this figured out after many hours of figuring
out. Your help would be so much appreciated!

Please kindly read this traceback error log:

http://dpaste.com/00P91XY.txt'

--
Ticket URL: <https://code.djangoproject.com/ticket/31618>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 22, 2020, 5:22:40 PM5/22/20
to django-...@googlegroups.com
#31618: SMTPServerDisconnected at /accounts/send_login_email Connection
unexpectedly closed
-------------------------------------+-------------------------------------
Reporter: Bakhtiar Dossul | Owner: (none)
Type: Uncategorized | Status: new
Component: Error reporting | Version: 3.0
Severity: Normal | Resolution:

Keywords: Django, SMTP, GMAIL | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/31618#comment:2>

Django

unread,
May 23, 2020, 5:58:45 AM5/23/20
to django-...@googlegroups.com
#31618: SMTPServerDisconnected at /accounts/send_login_email Connection
unexpectedly closed
-------------------------------------+-------------------------------------

Reporter: Bakhtiar Dossul | Owner: (none)
Type: Uncategorized | Status: closed

Component: Error reporting | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: Django, SMTP, GMAIL | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => invalid


Comment:

Sorry, but this ticket tracker is not intended as a support channel. Read
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

--
Ticket URL: <https://code.djangoproject.com/ticket/31618#comment:3>

Reply all
Reply to author
Forward
0 new messages