#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 = 'xxxxx...@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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.8c26f10cb2c7b37c0c98f53460b703cf%40djangoproject.com.