Swift_TransportException Connection could not be established with host smtp.gmail.com

前端 未结 13 1289
别那么骄傲
别那么骄傲 2020-12-03 05:00

I can\'t figure for the life of me why exactly is it failing.. this is the exact error I am getting:

Fatal error: Uncaught exception \'Swift_TransportExcepti         


        
13条回答
  •  臣服心动
    2020-12-03 05:34

    I had the same issue when I was using Godaddy web hosting and solved this by editing my .env file as,

    MAIL_DRIVER=smtp
    MAIL_HOST=XXXX.XXXX.in
    MAIL_PORT=587
    MAIL_USERNAME=dexxxxx
    MAIL_PASSWORD=XXXXXXXX
    MAIL_ENCRYPTION=tls
    

    Where MAIL_HOST is your domain name from Godaddy, MAIL_USERNAME is your user name from Godaddy and MAIL_PASSWORD is your password from Godaddy.

    I hope this may help you.

提交回复
热议问题