Skip to content

Commit

Permalink
Adding Mail class
Browse files Browse the repository at this point in the history
  • Loading branch information
yocmen committed Jun 22, 2017
1 parent d14240e commit edc3744
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/CssInlineMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Yocmen\Sneaker;

use Mail;
use Illuminate\Mail\Mailer;
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;

Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit edc3744

Please sign in to comment.