Reputation: 21
I have an error
Swift_TransportException Connection could not be established with host smtp.googlemail.com [Unable to find the socket transport "tsl" - did you forget to enable it when you configured PHP? #1]
How can I handle it? Please help me
Upvotes: 1
Views: 1829
Reputation: 1128
use like this in your .env
file
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
Upvotes: 1