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

19 lines
410 B
PHP

<?php
namespace App\Helpers\Mail;
use Dacastro4\LaravelGmail\Services\Message\Mail;
use Illuminate\Mail\TransportManager;
class GmailTransportManager extends TransportManager
{
protected function createGmailDriver()
{
info('ping pong');
$token = $this->app['config']->get('services.gmail.token', []);
$mail = new Mail;
return new GmailTransport($mail, $token);
}
}