mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
d076027d14
@ -35,7 +35,9 @@ class MailServiceProvider extends MailProvider
|
|||||||
{
|
{
|
||||||
|
|
||||||
$this->app->singleton('mail.manager', function($app) {
|
$this->app->singleton('mail.manager', function($app) {
|
||||||
return new GmailTransportManager($app);
|
$mailManager = new GmailTransportManager($app);
|
||||||
|
$mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
|
return $mailManager;
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app->bind('mailer', function ($app) {
|
$this->app->bind('mailer', function ($app) {
|
||||||
@ -51,10 +53,10 @@ class MailServiceProvider extends MailProvider
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
// $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
||||||
$mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
// $mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
return $mailManager;
|
// return $mailManager;
|
||||||
});
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user