Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

beracah.kings's avatar

Email Error

Im using gmail to send mails through my laravel app. It was working with Godaddy. Now we have shifted the site to a new hosting provider.

Though the credentials are correct. I get the below error msg ailed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted.

0 likes
3 replies
drewdan's avatar

Have you enabled access for less secure apps in Gmail?

beracah.kings's avatar

yes I had enabled less secure apps. Still I received the error. Issue got sorted after enabling two factor verification and generating an app password

1 like

Please or to participate in this conversation.