1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 01:11:34 +02:00
invoiceninja/app/Helpers/Mail/GmailTransportManager.php

19 lines
410 B
PHP
Raw Normal View History

<?php
namespace App\Helpers\Mail;
use Dacastro4\LaravelGmail\Services\Message\Mail;
use Illuminate\Mail\TransportManager;
class GmailTransportManager extends TransportManager
{
protected function createGmailDriver()
{
2021-02-10 12:06:10 +01:00
info('ping pong');
$token = $this->app['config']->get('services.gmail.token', []);
2019-12-04 06:26:07 +01:00
$mail = new Mail;
return new GmailTransport($mail, $token);
}
}