diff --git a/app/Providers/MailServiceProvider.php b/app/Providers/MailServiceProvider.php index 58c9fe0efd..8efd5f7e38 100644 --- a/app/Providers/MailServiceProvider.php +++ b/app/Providers/MailServiceProvider.php @@ -36,7 +36,7 @@ class MailServiceProvider extends MailProvider $this->app->singleton('mail.manager', function($app) { $manager = new GmailTransportManager($app); - $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class)); + // $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class)); return $manager; }); @@ -62,14 +62,14 @@ class MailServiceProvider extends MailProvider config('postmark.secret') ); - $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class)); + // $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class)); }); return $manager; }); - + app('mail.manager')->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class)); // $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) { // $mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));