souramoo / commentoplusplus

Commento with out of the box patches and updates to add useful features and fixes. Also with one-click deploy to Heroku so you can get up and running fast.
MIT License
391 stars 63 forks source link

SMTP not working #104

Closed kokokostya closed 2 years ago

kokokostya commented 2 years ago

Hey. Great job maintaining this fork!

Just deployed to Heroku with the following SMTP settings: COMMENTO_SMTP_HOST: smtp.gmail.com COMMENTO_SMTP_PORT: 587 COMMENTO_SMTP_USERNAME: mymail@gmail.com COMMENTO_SMTP_PASSWORD: mypassword COMMENTO_SMTP_FROM_ADDRESS: mymail@gmail.com

...and I keep receiving 535-5.7.8 Username and Password not accepted error in my log when I try to create a user even though the credentials are definitely correct.

This Google help article says:

From May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password

I'm guessing this could be the reason, isn't it?

Thanks!

souramoo commented 2 years ago

Thank you for your message! Yes, gmail no longer supports this form of usage. To fix this, you should use their app passwords instead, which basically works the same way from commento's point of view (replace your SMTP password with an app password) but with the benefit that it can easily be revoked if it goes missing.

https://support.google.com/accounts/answer/185833?hl=en

Let me know if this helps or if there are any other issues that arise!