Opened 5 years ago
Closed 5 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:
Change History (3)
comment:1 by , 5 years ago
Cc: | added |
---|
comment:2 by , 5 years ago
Summary: | SMTPServerDisconnected at /accounts/send_email Connection unexpectedly closed → SMTPServerDisconnected at /accounts/send_login_email Connection unexpectedly closed |
---|
comment:3 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Sorry, but this ticket tracker is not intended as a support channel. Read https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels