Failed to authenticate on SMTP server with username using Laravel Jetstream - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Monday, June 27, 2022

Failed to authenticate on SMTP server with username using Laravel Jetstream

I'm learning how to send email to the user whenever their system role change using Laravel 8 and I had this issue where most tutorials that I'm following requires the Google Account to turn on the Less Secure Apps, but I cannot change the settings in the Google Account anymore it says This setting is no longer available. I am using Laravel and Jetstream. Below is the error I'm getting:

Failed to authenticate on SMTP server with username "myEmail@gmail.com" 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. Learn more at 535 5.7.8 https://support.google.com/mail/? 
p=BadCredentials j2-20020a654282000000b003fe28130b12sm5399227pgp.62 - gsmtp".". Authenticator 
"PLAIN" returned "Expected response code "235" but got code "535", with message "535-5.7.8 
Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/? 
p=BadCredentials j2-20020a654282000000b003fe28130b12sm5399227pgp.62 - gsmtp".". Authenticator 
"XOAUTH2" returned "Expected response code "235" but got code "334", with message "334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==".".`

Does anyone know how to send emails in laravel or a tutorial on doing it? Thank you.



source https://stackoverflow.com/questions/72764251/failed-to-authenticate-on-smtp-server-with-username-using-laravel-jetstream

No comments:

Post a Comment