Quick Inquiry

How can I solve Connection could not be established with host smtp.gmail.com ?

How can I solve Connection could not be established with host smtp.gmail.com ?

100% Working Solution for Laravel mail error ~ How can I solve Connection could not be established with host smtp.gmail.com

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

Use localhost: ----------------------------

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=secret@gmail.com
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls

Use server: ---------------------------

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=secret@gmail.com
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls

=============================================

Always remember MAIL_DRIVER=smtp work for localhost but in case of Server you have make change MAIL_DRIVER=sendmail

Thanks for Visit us

(+91) 8130 640966

Mon-Sat : 9.00 am - 8.00 pm

Click to Mail us

18 Hours Real Time Support

New Delhi, India

Okhla Phase-I New Delhi 110020

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online