mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 00:47:31 -04:00
22 lines
516 B
PHP
22 lines
516 B
PHP
<?php
|
|
|
|
namespace App\Helpers\Mail;
|
|
|
|
use Illuminate\Mail\MailManager;
|
|
use App\CustomMailDriver\CustomTransport;
|
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
|
|
class GmailTransportManager extends MailManager
|
|
{
|
|
protected function createGmailTransport()
|
|
{
|
|
|
|
//$token = $this->app['config']->get('services.gmail.token', []);
|
|
$token =Config::get('services.gmail.token');
|
|
$mail = new Mail;
|
|
|
|
return new GmailTransport($mail, $token);
|
|
}
|
|
} |