Django Email Configuration
Django is a Python-based web framework that allows more control for sending emails using functions and expressions.
settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = #sender's email-id
EMAIL_HOST_PASSWORD = #password associated with above email-id
Less Secure apps gmail
- Go to myaccount.google.com
- Go to security, ande enable 2FA
- If the App Password is not shown inside the 2FA, then
- Search App Password in the search bar
- Select the App Password and created a new app password.
- Finally you can see the App Password visible inside the Security.