21zoo Labs - Assorted Stuff

Django SMTP Settings for Gmail

Posted — Dec 18, 2017

Django SMTP Settings for Gmail

EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '<<username>>@gmail.com' # your Gmail username
EMAIL_HOST_PASSWORD = 'xxxx' # your Gmail password
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

And enable low security apps here.