Error while sending email on GoDaddy Server: Laravel 5.1

前端 未结 6 1991
借酒劲吻你
借酒劲吻你 2020-12-17 03:50

I am using inbuilt template of Login System in Laravel 5.1

When I use Forgot Password on localhost, everything works. Below are my keys in .env file<

6条回答
  •  一个人的身影
    2020-12-17 04:47

    I had a hell of a time trying to find an answer to this so hopefully this helps someone. I was able to relay using my GoDaddy email account settings for a while but for whatever reason that stopped working. I'm now using the standard PHP Mail function to send emails and here's the .env config for that. Not sure if port or encryption are necessary but it's working so left it as is.

    MAIL_DRIVER=mail
    MAIL_HOST=localhost
    MAIL_PORT=465
    MAIL_USERNAME=
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=ssl
    

提交回复
热议问题