"message": "Expected response code 250 but got code \"530\", with message \"530-5.7.0 Authentication Required. Learn more at\r\n530 5.7.0 https://support.google.com/mail/?p=WantAuthError t7sm2523500wrw.60 - gsmtp\r\n\"", code example

Example: swift_transportexception expected response code 250 but got code "530", with message "530 5.7.1 authentication required "

1.change mail driver

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
2.clear config cache

php artisan config:clear

Tags:

Misc Example