diff --git a/src/TransportManager.php b/src/TransportManager.php index 309bc6f..986e18d 100644 --- a/src/TransportManager.php +++ b/src/TransportManager.php @@ -1,15 +1,16 @@ getTransportConfig(); + $client = new HttpClient(Arr::get($config, 'guzzle', [])); + return new MailgunTransport($client, $config['secret'], $config['domain']); } @@ -106,9 +108,10 @@ protected function createMailgunDriver() */ protected function createMandrillDriver() { - $client = new HttpClient(); $config = $this->getTransportConfig(); + $client = new HttpClient(Arr::get($config, 'guzzle', [])); + return new MandrillTransport($client, $config['secret']); }