#31618: SMTPServerDisconnected at /accounts/send_email Connection unexpectedly
               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_HOST_USER = 'xxxxx...@gmail.com'

 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:


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 

Reply via email to