num3thod
3 years ago

Yet another Mailgun question. Please help.

Posted 3 years ago by num3thod

So I've used mailgun/mandrill in the past without issues. But on this Laravel 5.1 project, I am constantly getting timeouts on live. The error message says "Connection could not be established with host smtp.mailgun.org [Connection timed out #110]".

Yet, I am specifically using the Mailgun driver. Laravel should not be attempting to connect through SMTP (which is blocked by my hosting provider). What is going on here? How do I force Laravel to use the mailgun driver and NOT try smtp?

MAIL_DRIVER=mailgun
'mailgun' => [
        'domain' => env('mydomain.com'),
        'secret' => env('key-a2d3f9XXXXXXXXXXXXXXX'),
    ],

Please sign in or create an account to participate in this conversation.