laravel Expected response code 250 but got code "530"

Use SSL and port 465 like this:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=12345678
MAIL_ENCRYPTION=ssl

100% will work.


MAIL_ENCRYPTION=null

change it to

MAIL_ENCRYPTION=tls

Just Change your encryption type to 'tls' and it would work and make sure your google account's 'LESS SECURE APP ACCESS' setting is turned 'ON' and also after changing your .env file you should restart your laravel server.

Hope it helps.


I had the same problem. I changed,

MAIL_ENCRYPTION=null to 
MAIL_ENCRYPTION=tls 

php artisan config:cache

and it worked.


you need to enable your 2 step verification from gmail account.

https://myaccount.google.com/security

then use the generated key from there to your ENV_PASSWORD instead your real password.