Hi Dear, Good Afternoon. Dear these settings are used for only email host and password these variables are not valid for db_user or db_password. see the image below. Also make sure you smtp is enabled in that email which email you are using settings.py ok hope got this ?
On Sat, Apr 30, 2022 at 12:17 AM 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Good Afternoon, > > i included the db_user and db_password becasue that was what my > environment variable used in my advanced settings. When i debugged i did > use both email user and db user and got the same result. Also i tried > everyone's answer but still obtained the same result. Is it something i > might have done wrong? I will try to rewatch the videos again but if > someone has another try i can give then please inform me. i have been stuck > for a while on this one. > > On Friday, April 29, 2022 at 2:30:49 AM UTC-7 h.bash...@gmail.com wrote: > >> Hi there, >> >> EMAIL_BACKEND = 'django.core.mail.backends.*smtp.EmailBackend'* >> *EMAIL_HOST = 'smtp.gmail.com <http://smtp.gmail.com/>'* >> *EMAIL_PORT = 587* >> *EMAIL_USE_TLS = True* >> *EMAIL_HOST_USER = os.environ.get('DB_USER')* >> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* >> in this code you just need to provide that email on which you will >> receive the email i means that gmail account why you use the db user >> or db password ? >> here the solution to receive emails like >> *EMAIL_HOST_USER = exa...@gmail.com* >> *EMAIL_HOST_PASSWORD = 12345678* >> >> >> >> On Thu, Apr 28, 2022 at 8:00 AM 'Delvin Alexander' via Django users < >> django...@googlegroups.com> wrote: >> >>> i thought that because i had that as my variable name that i had to call >>> upon that name. Thank you, i will give that a try. >>> >>> On Tuesday, April 26, 2022 at 11:33:20 PM UTC-7 jul.ale...@gmail.com >>> wrote: >>> >>>> Seem pretty clear, you are calling db user and db password instead of >>>> email and email password, >>>> >>>> *EMAIL_HOST_USER = os.environ.get('DB_USER')* >>>> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* >>>> >>>> Regards, >>>> >>>> Julio Cojom >>>> >>>> El mar, 26 abr 2022 a las 23:38, 'Delvin Alexander' via Django users (< >>>> django...@googlegroups.com>) escribió: >>>> >>>>> Hello everyone, >>>>> >>>>> May you please assist in informing me on what i need to do to resolve >>>>> this issue. >>>>> >>>>> - *SMTPAuthenticationError at /password-reset/* >>>>> *- (535, b'5.7.8 Username and Password not accepted. Learn more >>>>> at\n5.7.8 https://support.google.com/mail/?p=BadCredentials >>>>> <https://support.google.com/mail/?p=BadCredentials> >>>>> j64-20020a62c543000000b0050d260c0ea8sm13366402pfg.110 - gsmtp')* >>>>> >>>>> >>>>> I included the 16 character code to my environment variable and called >>>>> it in my settings.pymfile, but still the error occurs. Also here is my >>>>> settings.py file: >>>>> >>>>> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'* >>>>> *EMAIL_HOST = 'smtp.gmail.com <http://smtp.gmail.com>'* >>>>> *EMAIL_PORT = 587* >>>>> *EMAIL_USE_TLS = True* >>>>> *EMAIL_HOST_USER = os.environ.get('DB_USER')* >>>>> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* >>>>> >>>>> -- >>>>> 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 >>>>> <https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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/274f9087-f97c-4f15-bbc7-708a3538e75fn%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/274f9087-f97c-4f15-bbc7-708a3538e75fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ce27a06a-f5fb-48b7-ac88-873fdcad5d18n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ce27a06a-f5fb-48b7-ac88-873fdcad5d18n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANcnaAw2Ltqp-3fN%3D93agq0hVwcOSu_%2BAd-7Q4bfTvnXH6OQTg%40mail.gmail.com.