Skip to content

Commit

Permalink
Render the right view when sending mails just in plain text format (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
czmole committed Apr 23, 2018
1 parent 0c6f474 commit 783bea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function render($view, array $data = [])

$data['message'] = $this->createMessage();

return $this->renderView($view, $data);
return $view ? $this->renderView($view, $data) : $this->renderView($plain, $data);
}

/**
Expand Down

0 comments on commit 783bea8

Please sign in to comment.