Skip to content

Commit

Permalink
Merge pull request #28 from lara-press/0.1
Browse files Browse the repository at this point in the history
0.1
  • Loading branch information
Jeff Berry authored Jan 12, 2017
2 parents b64c045 + e3e7091 commit b96a44a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@

class SupportServiceProvider extends ServiceProvider {

public function boot()
{
$this->loadViewsFrom(dirname(dirname(dirname(__DIR__))) . '/resources/views', 'larapress');
}

/**
* Boot
* Register
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions src/LaraPress/Mail/wp_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function wp_mail($to, $subject, $message, $headers = '', $attachments = [])
array_values(apply_filters('wp_mail', compact('to', 'subject', 'message', 'headers', 'attachments')));

return $mailer->send(
['raw' => $message],
[],
'larapress::email',
['content' => $message],
function (\Illuminate\Mail\Message $message) use ($to, $subject, $headers, $attachments)
{
$message->to($to);
Expand Down
1 change: 1 addition & 0 deletions src/resources/views/email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{!! $content !!}

0 comments on commit b96a44a

Please sign in to comment.