Connection to tcp://smtp.mail.yahoo.com:465 Timed Out Connection to tcp://smtp.mail.yahoo.com:465 Timed Out laravel laravel

Connection to tcp://smtp.mail.yahoo.com:465 Timed Out


I notice in /config/mail.php , I see

'encryption' => env('MAIL_ENCRYPTION', 'tls'),

By updating it to

'encryption' => env('MAIL_ENCRYPTION', 'ssl'),

Now, it is working fine. My email is sending out now.


With Laravel 6.x ,7.x and 8.x

it is advisable to use SSL over the default tls.

Most shared hosting providers sign emails with SSL so edit your .env file to have this

MAIL_ENCRYPTION=ssl