Error while sending email on GoDaddy Server: Laravel 5.1

前端 未结 6 1981
借酒劲吻你
借酒劲吻你 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:35

    Looking around web, it seems when using GoDaddy you need to use their relay SMTP with Gmail credentials when you want to send an e-mail.

    So in your .env file instead of:

    MAIL_HOST=smtp.gmail.com
    

    you should use

    MAIL_HOST=here_godaddy_relay_server
    

    The exact value of relay server depends on hosting you have but it will be probably relay-hosting.secureserver.net so try first with:

    MAIL_HOST=relay-hosting.secureserver.net
    

    Further details: https://www.godaddy.com/help/what-is-the-name-of-my-hosting-accounts-relay-server-953+&cd=2&hl=en&ct=clnk&gl=us

提交回复
热议问题