I am suddenly receiving an error from my Laravel Mail form. I am using Google SMTP server It was working fine before. I have not made any coding changes nor have I made any changes to both my mail account password or the app password. Appreciate help on this please.
The error is: Failed to authenticate on SMTP server with username "[email protected]" using the following authenticators: "LOGIN", "PLAIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535-5.7.8 Username and Password not accepted. For more information, go to 535 5.7.8 https://support.google.com/mail/?p=BadCredentials 41be03b00d2f7-a9bdf0b450esm2687856a12.69 – gsmtp".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535-5.7.8 Username and Password not accepted. For more information, go to 535 5.7.8 https://support.google.com/mail/?p=BadCredentials 41be03b00d2f7-a9bdf0b450esm2687856a12.69 – gsmtp".". Authenticator "XOAUTH2" returned "Expected response code "235" but got code "334", with message "334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==".".
2
Answers
It seems that the app password on google was deleted (not by me). So I had to regenerate a new app password and it all working fine. Hope this helps anyone out there who comes across the same issue.
I think the problem is with Google Mail itself. I have tried many solution given in the forum, but the result still got the error. After upgrading to Laravel 9, the mailing still worked, but then it suddenly stopped working.