Answer the question
In order to leave comments, you need to log in
Why in Laravel, when changing settings in env and mail.php, nothing changes on the site?
Hello! I use Laravel to send emails via the smtp driver and Yandex.mail
.env:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.yandex.ru
MAIL_PORT=587
MAIL_USERNAME=***@***.ru
MAIL_PASSWORD=****
MAIL_ENCRYPTION=ssl
mail. php
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.yandex.ru'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => '***@***.ru', 'name' => 'Test'],
'encryption' => env('MAIL_ENCRYPTION', 'ssl'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question