Opened 4 years ago

Closed 4 years ago

#31618 closed Uncategorized (invalid)

SMTPServerDisconnected at /accounts/send_login_email Connection unexpectedly closed

Reported by: Bakhtiar Dossul Owned by:
Component: Error reporting Version: 3.0
Severity: Normal Keywords: Django, SMTP, GMAIL
Cc: Bakhtiar Dossul Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I am currently experiencing this struggle. I did the following code:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'xxxxxxxx@…'
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'

Change History (3)

comment:1 by Bakhtiar Dossul, 4 years ago

Cc: Bakhtiar Dossul added

comment:2 by Bakhtiar Dossul, 4 years ago

Summary: SMTPServerDisconnected at /accounts/send_email Connection unexpectedly closedSMTPServerDisconnected at /accounts/send_login_email Connection unexpectedly closed

comment:3 by Claude Paroz, 4 years ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top