Skip to content

Commit 0557622

Browse files
committed
use single space if plain email is empty
1 parent 4cc82f3 commit 0557622

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
@@ -331,7 +331,7 @@ protected function addContent($message, $view, $plain, $raw, $data)
331331
if (isset($plain)) {
332332
$method = isset($view) ? 'addPart' : 'setBody';
333333

334-
$message->$method($this->renderView($plain, $data), 'text/plain');
334+
$message->$method($this->renderView($plain, $data) ?: ' ', 'text/plain');
335335
}
336336

337337
if (isset($raw)) {

0 commit comments

Comments
 (0)