10000 Fix empty email with attachments (#35941) · laravel/framework@1a146d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a146d2

Browse files
authored
Fix empty email with attachments (#35941)
1 parent 49f9db0 commit 1a146d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Mail/Mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ protected function parseView($view)
325325
protected function addContent($message, $view, $plain, $raw, $data)
326326
{
327327
if (isset($view)) {
328-
$message->setBody($this->renderView($view, $data), 'text/html');
328+
$message->setBody($this->renderView($view, $data) ?: ' ', 'text/html');
329329
}
330330

331331
if (isset($plain)) {

0 commit comments

Comments
 (0)
0