less than 1 minute read

Add this configurations in your settings.py

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

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'

Comments