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= diff --git a/config/services.php b/config/services.php index d72eea32f3..6a1659be70 100644 --- a/config/services.php +++ b/config/services.php @@ -38,6 +38,7 @@ return [ 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), + 'endpoint' => env('MAILGUN_ENDPOINT','api.mailgun.net'), 'secret' => env('MAILGUN_SECRET'), ],