(1/1) Swift_TransportException Connection could not be established with host smtp.gmail.com [Unable to find the socket transport "tsl" - did you forget to enable it when you configured PHP? #6]
This is the exact message poping up. Why am I getting this. Ive tried a LOT of suggestions from stackoverflow and other sites, but cant get it to work.
.ENV
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=***********@gmail.com
MAIL_PASSWORD=***********
MAIL_ENCRYPTION=tsl
MAIL_NAME='Mela Solutions'
mail.php
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => env('MAIL_USERNAME'), 'name' => env('MAIL_NAME')],
'encryption' => env('MAIL_ENCRYPTION', 'tsl'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/324KnyU
via IFTTT
Aucun commentaire:
Enregistrer un commentaire