From edc37440866e86ec14b3d28653a4de15f02bed46 Mon Sep 17 00:00:00 2001 From: Yocsel Mendoza Date: Wed, 21 Jun 2017 21:42:36 -0400 Subject: [PATCH] Adding Mail class --- .idea/workspace.xml | 20 ++++++++++---------- src/CssInlineMailer.php | 5 +---- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f1351da..d4d0698 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -29,10 +29,10 @@ - - + + - + @@ -79,8 +79,8 @@ @@ -272,12 +272,12 @@ 1497991441634 - + - @@ -346,7 +346,7 @@ - + @@ -417,10 +417,10 @@ - - + + - + diff --git a/src/CssInlineMailer.php b/src/CssInlineMailer.php index 0d11ca3..a2f7f02 100644 --- a/src/CssInlineMailer.php +++ b/src/CssInlineMailer.php @@ -2,7 +2,6 @@ namespace Yocmen\Sneaker; -use Mail; use Illuminate\Mail\Mailer; use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles; @@ -47,9 +46,7 @@ public function send($content, $callback) { $content = $this->convertCssToInlineStyles($content); - $this->mailer->queue('sneaker::raw', compact('content'), $callback); - - Mail::raw(compact('content'), $callback); + $this->mailer->send('sneaker::raw', compact('content'), $callback); } /**