mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 21:27:32 -04:00
* 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
18 lines
409 B
PHP
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);
|
|
}
|
|
|
|
} |