Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted

php535code875acceptednotpasswordusernamemessageresponseexpected250gsmtpsolvedswiftmailerv6sm5005123itfx8badcredentialspmailcomgooglesupporthttpslearn1

Last Update : 2023-09-22 UTC 09:04:00 AM

Answers of > Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted

I researched on the internet and some answers w3coded code message includes enabling the "access for lesser app" w3coded code message and "unlocking gmail captcha" which sadly didn't w3coded code message work for me until I found the 2-step w3coded code message verification.,I had the same issue after long w3coded code message time debugging and googling i have found the w3coded code message solution. that by enabling less secure apps. the w3coded code message email started working. ,I had the same problem, w3coded code message changing my gmail password fixed the issue, and w3coded code message also don't forget to enable less secure app on w3coded code message on your gmail account ,This was my solution. I w3coded code message created this to atleast make other people not go w3coded code message wasting their time researching for a possible w3coded code message answer.

This is my .env mail settings

MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=hello27
MAIL_ENCRYPTION=tls

i was getting thesame error as stated in the question but by using

php artisan config:cache

There is no need to update anything in config/mail.php. just put you credential in .env with this specific key's. This is my .env file.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=tls

Below settings are tested in Laravel 8 and worked:

MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=username@gmail.com
MAIL_PASSWORD='your#password_here'  # put the password in quotes
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=username@gmail.com
MAIL_FROM_NAME="${APP_NAME}"

Current topics : Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted

Newly Added Questions

Similar Questions

Questions :

How To Group Array Key Value

Last Update : 2023-09-22 UTC 12:34:46 PM

Questions :

PhpStorm Warning For React Attributes In Jsx File With SCSS File

Last Update : 2023-09-22 UTC 12:34:33 PM

Questions :

Why Is The File Not Showing Up In Request.files And In Request.forms Instead?

Last Update : 2023-09-22 UTC 12:34:22 PM

Questions :

Proxying Assets From React App Directory In Slim Framework?

Last Update : 2023-09-22 UTC 12:34:14 PM

Questions :

Laravel 5.4 Can't Run “php Artisan Preset React” Comand

Last Update : 2023-09-22 UTC 12:33:54 PM

Questions :

How To Update Session Values Without Signing Out?

Last Update : 2023-09-22 UTC 12:33:44 PM

Questions :

Array Is Not Visible

Last Update : 2023-09-22 UTC 12:33:33 PM

Questions :

React Routing For Login Using Symfony

Last Update : 2023-09-22 UTC 12:33:24 PM

Questions :

Sanctum With React SPA Returning 419 Page Expired

Last Update : 2023-09-22 UTC 12:33:04 PM

Questions :

How Do I Import An Input String Into Another Page

Last Update : 2023-09-22 UTC 12:32:48 PM

Top
© 2023 W3CODED - All Rights Reserved.