mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-19 17:42:44 +01:00
18 lines
386 B
PHP
18 lines
386 B
PHP
<?php
|
|
|
|
namespace App\Helpers\Mail;
|
|
|
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
|
use Illuminate\Mail\TransportManager;
|
|
|
|
class GmailTransportManager extends TransportManager
|
|
{
|
|
protected function createGmailDriver()
|
|
{
|
|
$token = $this->app['config']->get('services.gmail.token', []);
|
|
$mail = new Mail;
|
|
|
|
return new GmailTransport($mail, $token);
|
|
}
|
|
}
|