Im trying to Mail in Laravel 5.1
my mail.php code is
return [
\'driver\' => env(\'MAIL_DRIVER\', \'smtp\'),
\'host\' => env(\'MAIL_HOS
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' is turned 'ON' and also after changing your .env file you should restart your laravel server.
Hope it helps.
Go to Manage Your Google Account page then at the Security tab go to App passwords and get new random code. use it at .env file and replace it with an email password.
change your MAIL_ENCRYPTION = null to MAIL_ENCRYPTION = ssl or MAIL_ENCRYPTION = tls. i had this issue before and changing to MAIL_ENCRYPTION = tls worked for me. also make sure that your mail settings in config\mail.php is the same as .env file