invoiceninja/app/Helpers/Mail/GmailTransportManager.php
David Bomba 1b6ec9699a
Gmail Email via API (#3124)
* Working on GMail Driver

* working on custom Gmail Mail Provider

* Add total_taxes to quotes and recurring_*

* Implementation of new mailserviceprovider to allow native use of Mail:: with gmail email sending
2019-12-04 15:52:04 +11:00

18 lines
409 B
PHP

<?php
namespace App\Helpers\Mail;
use App\Helpers\Mail\GmailTransport;
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', []);
return new GmailTransport(Mail $mail, string $token);
}
}