Skip to content

Instantly share code, notes, and snippets.

@Yogendra0Sharma
Forked from stamaniorec/django_mailer.py
Created February 22, 2017 09:08
Show Gist options
  • Save Yogendra0Sharma/a6daf95449776ea05d960fbf274ed7be to your computer and use it in GitHub Desktop.
Save Yogendra0Sharma/a6daf95449776ea05d960fbf274ed7be to your computer and use it in GitHub Desktop.
Django email server setup
# in settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = '...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment