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.
--
Ticket URL: <https://code.djangoproject.com/ticket/31618#comment:2>
* 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>