Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
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

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