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

前端 未结 13 1295
别那么骄傲
别那么骄傲 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:21

    In v 5.8.38, I set the env file as the following:

    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.googlemail.com
    MAIL_PORT=465
    MAIL_USERNAME=mygmail@gmail.com
    MAIL_PASSWORD=difficultCombination
    MAIL_ENCRYPTION=ssl
    MAIL_FROM_NAME=myWebappName
    

    After doing php artisan config:clear, it worked well on a shard server.

提交回复
热议问题