2019-12-04 15:52:04 +11:00
|
|
|
<?php
|
2021-02-16 23:24:36 +11:00
|
|
|
/**
|
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
|
*
|
|
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
|
*
|
2021-06-16 16:58:16 +10:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2021-02-16 23:24:36 +11:00
|
|
|
*/
|
2019-12-04 15:52:04 +11:00
|
|
|
namespace App\Helpers\Mail;
|
|
|
|
|
|
2021-02-10 22:34:39 +11:00
|
|
|
use Illuminate\Mail\MailManager;
|
|
|
|
|
use App\CustomMailDriver\CustomTransport;
|
2019-12-04 15:52:04 +11:00
|
|
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
2021-02-11 22:37:58 +11:00
|
|
|
use Illuminate\Support\Facades\Config;
|
2019-12-04 15:52:04 +11:00
|
|
|
|
2021-02-10 22:34:39 +11:00
|
|
|
|
|
|
|
|
class GmailTransportManager extends MailManager
|
2019-12-04 15:52:04 +11:00
|
|
|
{
|
2021-02-10 22:34:39 +11:00
|
|
|
protected function createGmailTransport()
|
2019-12-04 15:52:04 +11:00
|
|
|
{
|
2021-02-16 23:24:36 +11:00
|
|
|
return new GmailTransport(new Mail);
|
2019-12-04 15:52:04 +11:00
|
|
|
}
|
2021-02-10 22:34:39 +11:00
|
|
|
}
|