From e5c821bcea8e12c83fbbe4cd0ca663d53826bf1f Mon Sep 17 00:00:00 2001 From: Jan Klepek Date: Tue, 17 Sep 2019 15:38:16 +0200 Subject: [PATCH 1/3] add MAILGUN_ENDPOINT variable --- .env.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.env.example b/.env.example index 9899c5cd31..b4669a480d 100644 --- a/.env.example +++ b/.env.example @@ -88,6 +88,8 @@ MAIL_ENCRYPTION=null # Other mail drivers: MAILGUN_DOMAIN= MAILGUN_SECRET= +# If you are on EU region in mailgun, use api.eu.mailgun.net, otherwise use api.mailgun.net +MAILGUN_ENDPOINT=api.mailgun.net MANDRILL_SECRET= SPARKPOST_SECRET= From 12e230675519e754db5fad8a6fb807ab3a29086f Mon Sep 17 00:00:00 2001 From: Jan Klepek Date: Tue, 17 Sep 2019 15:39:15 +0200 Subject: [PATCH 2/3] add mailgun_endpoint into mailgun config --- config/services.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/services.php b/config/services.php index d72eea32f3..7628775942 100644 --- a/config/services.php +++ b/config/services.php @@ -38,6 +38,7 @@ return [ 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), + 'endpoint' => env('MAILGUN_ENDPOINT'), 'secret' => env('MAILGUN_SECRET'), ], From 7d2a86580db5f22cefbd5221f1f2673fa08226e3 Mon Sep 17 00:00:00 2001 From: Jan Klepek Date: Tue, 17 Sep 2019 15:54:53 +0200 Subject: [PATCH 3/3] add default value for mailgun endpoint --- config/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services.php b/config/services.php index 7628775942..6a1659be70 100644 --- a/config/services.php +++ b/config/services.php @@ -38,7 +38,7 @@ return [ 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), - 'endpoint' => env('MAILGUN_ENDPOINT'), + 'endpoint' => env('MAILGUN_ENDPOINT','api.mailgun.net'), 'secret' => env('MAILGUN_SECRET'), ],