Skip to content

Instantly share code, notes, and snippets.

@dogancankilment
Created April 10, 2016 17:46
Show Gist options
  • Save dogancankilment/2ddf7f5363733bbef471dcaf15bdfc31 to your computer and use it in GitHub Desktop.
Save dogancankilment/2ddf7f5363733bbef471dcaf15bdfc31 to your computer and use it in GitHub Desktop.
# django settings.py
...
MAIL_PASSWD = "Your-Mail-Passwd"
# Email setup
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = MAIL_PASSWD
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment