Error while sending email on GoDaddy Server: Laravel 5.1

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

    For Config email to your Laravel project first, create an email account in the host and check config details.

    Now config you .env file example:

    MAIL_DRIVER=mail
    MAIL_HOST=mail.22h.in
    MAIL_PORT=587
    MAIL_USERNAME=
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=tls
    

    And your config/mail.php Should be like this.

    'from' => ['address' => 'demo@domain.in', 'name' => 'Order Receipt'],
    

    Clear your project cache and config , Run these command

    php artisan config:Cache
    php artisan cache:Clear
    

提交回复
热议问题