mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
20 lines
445 B
PHP
20 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Helpers\Mail;
|
|
|
|
use Illuminate\Mail\MailManager;
|
|
use App\CustomMailDriver\CustomTransport;
|
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
|
|
|
|
|
class GmailTransportManager extends MailManager
|
|
{
|
|
protected function createGmailTransport()
|
|
{
|
|
info('ping pong');
|
|
$token = $this->app['config']->get('services.gmail.token', []);
|
|
$mail = new Mail;
|
|
|
|
return new GmailTransport($mail, $token);
|
|
}
|
|
} |