Answer the question
In order to leave comments, you need to log in
Why does Mail in Laravel always send mail to the same address?
Good day everyone!
Faced with a completely incomprehensible situation for myself. There is a project on Laravel 5.5.44. Sending an email with the following code:
Mail::send("mail.broken-links", $data, function ($message) {
$message->from(config("mail.from.address"), config("app.name"));
$message->to(config("mail.to.address"));
$message->cc(config("mail.cc.address"));
$message->subject($this->nameSubject);
});
config("mail.to.address")
$message->to
config("mail.to.address")
Mail::send
config("mail.to.address")
config("mail.to.address")
MAIL_DRIVER=mail
'driver' => env('MAIL_DRIVER', 'mail')
php artisan config:cache
php artisan cache:clear, php artisan route:cache, php artisan view:clear
. Nothing helps. 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