Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Created March 23, 2016 17:42
Show Gist options
  • Save agusmakmun/3a2147717fb97eef0a56 to your computer and use it in GitHub Desktop.
Save agusmakmun/3a2147717fb97eef0a56 to your computer and use it in GitHub Desktop.

Add this configurations in your settings.py

This configurations is if you work with smtp.gmail.com, other smtp is similiar with configurations.

  1. Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha
  2. Change to active: https://www.google.com/settings/security/lesssecureapps
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your_password'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment