Laravel mailgun driver ignores verified domain and uses sandbox instead

146 Views Asked by At

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.

1

There are 1 best solutions below

1
On

sudo service supervisor restart solved the problem.