“Falha ao autenticar no servidor SMTP com o nome de usuário” Respostas de código

Falha ao autenticar no servidor SMTP com o nome de usuário

This will not work as of May 30, 2022 checkout here https://support.google.com/accounts/answer/6010255?hl=en&authuser=6 Thanks @sarout for pointing this out.

Did you turn on the "Allow less secure apps" on? go to this link

https://myaccount.google.com/security#connectedapps

Take a look at the Sign-in & security -> Apps with account access menu.

You must turn the option "Allow less secure apps" ON.

If is still doesn't work try one of these:

Go to https://accounts.google.com/UnlockCaptcha , and click continue and unlock your account for access through other media/sites.

Use double quote in your password: "your password"

And change your .env file

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=xxxxxx
MAIL_ENCRYPTION=tls
because the one's you have specified in the mail.php will only be used if the value is not available in the .env file.
shafeeque

Falha ao autenticar no servidor SMTP com o nome de usuário

//Capture Unload
//https://accounts.google.com/b/0/UnlockCaptcha

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=xxxxxx
MAIL_ENCRYPTION=tls
ashik

Respostas semelhantes a “Falha ao autenticar no servidor SMTP com o nome de usuário”

Perguntas semelhantes a “Falha ao autenticar no servidor SMTP com o nome de usuário”

Mais respostas relacionadas para “Falha ao autenticar no servidor SMTP com o nome de usuário” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código