php - Laravel 5.1 GuzzleHttp Client error: 404 when using mailgun -
i'm using mailgun service when sending mail laravel. however, i've set today , it's stopped working. have entered correct info in .env, config/services.php , config/mail.php. i'm still getting below error:
clientexception in middleware.php line 69: client error: 404 it looks domain not getting passed through somehow, though in config/services.php file have:
'mailgun' => [ 'domain' => env('mydomain.com'), 'secret' => env('<my-mailgun-key>'), ], i have hidden above credentials safety, in real application proper values.
please help.
i hade same problem , solved removing env() call. thats because env return value of env variable in first argument (not value of argument) , otherwise return second argument.
so:
'mailgun' => [ 'domain' => 'mydomain.com', 'secret' => '<my-mailgun-key>', ], try that.
Comments
Post a Comment