Answer the question
In order to leave comments, you need to log in
SMTP not working in production?
Hello! You need to fasten the sending of a message (reviews) from the site to the mail. Everything works fine through the local server, but when I upload it to the hosting (heroku), it gives an error
SMTPAuthenticationError at /massage/
Next comes the suggestion to go to the mail from the browser and try again. Does not help. Next, I'll throw the smtp setting in settings.
#Gmail
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = '************'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
Answer the question
In order to leave comments, you need to log in
you don’t need a new acc + preferably 2FA and an application password,
then read what Gmail asks for, maybe he has Heroku in the bath
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question