diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 0ae4aeac2192..03edae29bfcd 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -281,7 +281,7 @@ protected function createMailgunTransport(array $config) } return $factory->create(new Dsn( - 'mailgun+https', + 'mailgun+'.($config['scheme'] ?? 'https'), $config['endpoint'] ?? 'default', $config['secret'], $config['domain']