1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00
invoiceninja/app/Helpers/Mail/GmailTransportManager.php
2021-02-10 22:34:39 +11:00

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);
}
}