Connection could not be established with host smtp.gmail.com [Connection refused #111] in laravel

I have used correct smtp details in .env file but getting error while sending mail.

Starter Asked on January 2, 2018 in Laravel.
Add Comment
1 Answer(s)

update this code on you .envĀ  file

MAIL_DRIVER=sendmail
you try first this.

and than it’s look like this.

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=my-email@gmail.com
MAIL_PASSWORD=*****
 
Starter Answered on January 2, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.