getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

0 - Failed to authenticate on SMTP server with username #154

Closed zigojacko closed 2 years ago

zigojacko commented 2 years ago

Trying to submit contact form authenticated to our client's Gmail SMTP and it just fails with the below error message...

0 - Failed to authenticate on SMTP server with username "email address" using 1 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "534", with message "534-5.7.14 534-5.7.14 Please log in via your web browser and then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 u9sm6356280wrm.70 - gsmtp "

In the Google account, less secure apps are allowed and IMAP is enabled.

I can authenticate it with our Google account and it works fine. It's just something to do with our client's account that won't work with SMTP and I'm actually stumped and don't know what to do about it...

zigojacko commented 2 years ago

No sooner had I commented, I found this on SO and used the below link from our client's Google account.

https://accounts.google.com/DisplayUnlockCaptcha

Hey presto - it then authenticated and started working. Very strange.