Skip to content

Commit

Permalink
Add mail quzzle options.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
it-can authored and crynobone committed Dec 6, 2015
1 parent f019594 commit 81a2ca8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/TransportManager.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?php namespace Orchestra\Notifier;

use Aws\Ses\SesClient;
use Illuminate\Support\Arr;
use Illuminate\Support\Manager;
use GuzzleHttp\Client as HttpClient;
use Orchestra\Memory\ContainerTrait;
use Swift_MailTransport as MailTransport;
use Swift_SmtpTransport as SmtpTransport;
use Illuminate\Mail\Transport\LogTransport;
use Illuminate\Mail\Transport\SesTransport;
use Illuminate\Mail\Transport\MailgunTransport;
use Illuminate\Mail\Transport\MandrillTransport;
use Swift_SmtpTransport as SmtpTransport;
use Swift_MailTransport as MailTransport;
use Swift_SendmailTransport as SendmailTransport;

class TransportManager extends Manager
Expand Down Expand Up @@ -93,9 +94,10 @@ protected function createMailDriver()
*/
protected function createMailgunDriver()
{
$client = new HttpClient();
$config = $this->getTransportConfig();

$client = new HttpClient(Arr::get($config, 'guzzle', []));

return new MailgunTransport($client, $config['secret'], $config['domain']);
}

Expand All @@ -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']);
}

Expand Down

0 comments on commit 81a2ca8

Please sign in to comment.