--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com.
--
I had the same issue before I resolve by Login to my Gmail account via browser on the same computer then go back to my project it works
Otherwise do the followings
i. Allow access to less secure app for your Gmail account
ii. Make sure you don’t send bulk emails, normally Gmail block your account if you send bulk emails
iii. Debug to see if os.environ.get(‘DB_USER’) and os.environ.get(‘DB_PASSWORD’) are your Gmail credentials (I thought dB refer to database credentials)
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com.
In my experience, Gmail does not allow (or does not support) using it as a smarthost if all you have is a free account, and even if you get it to work it will eventually cause you headaches. I don't know if this has changed the last few years, but I feel it hasn't. It's much better to use another service. I use runbox.com; mailbox.org is another solution. These are both paid email services. In a recent thread, someone also mentioned mailgun and sendgrid, which may be better suited for this purpose.
Other than that, you should enter a breakpoint or something in your code to verify that the values of EMAIL_HOST_USER and EMAIL_HOST_PASSWORD are what they should.
Regards,
Antonis
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/274f9087-f97c-4f15-bbc7-708a3538e75fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ce27a06a-f5fb-48b7-ac88-873fdcad5d18n%40googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a87e4b6a-6c5d-49ea-b308-2121936054fdn%40googlegroups.com.
If some emails are emails are disappearing, you may get ideas on
how to fix it from
https://djangodeployment.com/2017/01/18/why-does-django-not-email-me-the-500-internal-server-error/
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a87e4b6a-6c5d-49ea-b308-2121936054fdn%40googlegroups.com.