27👍
Turns out the problem was that the default SMTP backend in Django does not support SSL, and my SMTP host required it (not just TLS). Fortunately, I found a dirt-simple SSL backend, added EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend'
to my settings.py and everything just worked.
8👍
The settings below:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'mail.yourdomain.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'no-reply@yourdomain.com'
EMAIL_HOST_PASSWORD = 'password'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
worked for me.
My django version I tested with is 1.8.8.
- Where do I import the `DoesNotExist` exception in Django 1.10 from?
- Django: set cookie on test client?
- Change request.GET QueryDict values
- Django.db.utils.OperationalError: FATAL: role "django" does not exist
- Postgres: values query on json key with django
Source:stackexchange.com