1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Register Gmail Mail Transport

This commit is contained in:
= 2021-02-10 22:06:10 +11:00
parent b81afb9cb9
commit 2b48477785
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class GmailTransportManager extends TransportManager
{
protected function createGmailDriver()
{
info('ping pong');
$token = $this->app['config']->get('services.gmail.token', []);
$mail = new Mail;

View File

@ -7,8 +7,15 @@ use Illuminate\Mail\MailServiceProvider as MailProvider;
class MailServiceProvider extends MailProvider
{
public function register()
{
$this->registerSwiftTransport();
}
protected function registerSwiftTransport()
{
$this->app->singleton('swift.transport', function ($app) {
return new GmailTransportManager($app);
});

View File

@ -70,6 +70,10 @@ return [
'array' => [
'transport' => 'array',
],
'gmail' => [
'transport' => 'gmail',
],
],
/*