Not able to send email - Django

ID : 274342

viewed : 39

Tags : djangodjango-emaildjango





Top 3 Answer for Not able to send email - Django

vote vote

92

In settings.py

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'  

console.EmailBackend will print the mail in the console. So using

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' 

solved my problem. It is already documented here: Django docs: Email

vote vote

81

I personally just switched to my production server when this happened. Because this is a new IP location, Google attempted to protect my account by blocking the sign-in.

To fix this, I followed the steps in this answer:

First, enable access to less secure apps in your Google account here: https://www.google.com/settings/security/lesssecureapps

Since I had already done this, and my problem was now because of a new IP address, I had to manually confirm the next sign-in attempt using this link: https://accounts.google.com/DisplayUnlockCaptcha

See the linked answer for more information.

vote vote

76

Top 3 video Explaining Not able to send email - Django







Related QUESTION?