Skip to content

Commit

Permalink
Fix empty email with attachments (#35941)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jan 19, 2021
1 parent 49f9db0 commit 1a146d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Mailer.php
Expand Up @@ -325,7 +325,7 @@ protected function parseView($view)
protected function addContent($message, $view, $plain, $raw, $data)
{
if (isset($view)) {
$message->setBody($this->renderView($view, $data), 'text/html');
$message->setBody($this->renderView($view, $data) ?: ' ', 'text/html');
}

if (isset($plain)) {
Expand Down

0 comments on commit 1a146d2

Please sign in to comment.