Answer the question
In order to leave comments, you need to log in
Why doesn't Django + Google SMTP send emails?
I decided to do a password recovery, it didn’t work through postfix, I decided to do it through Google mail,
Here are the settings.py:
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_PORT = 587
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Answer the question
In order to leave comments, you need to log in
Googling what's missing:
EMAIL_USE_SSL = False
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_USE_SSL = False
SERVER_EMAIL = DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_SSL_CERTFILE
and in the networking EMAIL_SSL_KEYFILE
... or use not gmail, but something else ... EMAIL_TIMEOUT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question