1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00
invoiceninja/app/Providers/MailServiceProvider.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

17 lines
378 B
PHP

<?php
namespace App\Providers;
use App\Helpers\Mail\GmailTransportManager;
use Illuminate\Mail\MailServiceProvider as MailProvider;
class MailServiceProvider extends MailProvider
{
protected function registerSwiftTransport()
{
$this->app->singleton('swift.transport', function ($app) {
return new GmailTransportManager($app);
});
}
}