I'm trying to use mailgun to send notifications to users. I have verified domain, but even though my config\services.php
file looks like this:
'mailgun' => [
'domain' => 'mg.mydomain.biz',
'secret' => 'key-3223423423n423j42jklkj23l',
],
all the emails go through sandbox domain.
php artisan config:clear
does not help. It is the same with development and production environment. Also I need to point out that emails come from @maydomain.biz
when config\mail.php
clearly states 'from' => ['address' => '[email protected]', 'name' => 'Sender'],
. I channged it hours ago and cleared config cache un restarted web server since.
sudo service supervisor restart
solved the problem.