EMAIL_HOST = smtp.gmail.com EMAIL_HOST_USER = your-email EMAIL_HOST_PASSWORD = your-email-password EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_BACKEND = django.core.mail.backends.smtp.EmailBackend DEFAULT_FROM_EMAIL = your-email
On Mon, May 2, 2022 at 10:33 AM 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Improvements! i fixed my settings.py file and now i do not get the error. > The only problem is that for my email, i do not get the email notification > to reset my password. Any clues to this? > > On Sunday, May 1, 2022 at 4:08:46 AM UTC-7 Mahendra Yadav wrote: > >> I Know this solution charges are applicable if you want? >> >> Mahendra Yadav >> >> On Wed, 27 Apr 2022, 11:08 am 'Delvin Alexander' via Django users, < >> django...@googlegroups.com> wrote: >> >>> 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a87e4b6a-6c5d-49ea-b308-2121936054fdn%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a87e4b6a-6c5d-49ea-b308-2121936054fdn%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/CAE59x8cNPnS%3D6H0xuFhr6%2Bn%3Drtvdv0QUcorzSdR4JG6rO6SGCg%40mail.gmail.com.