Skip to content

Commit

Permalink
use single space if plain email is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 30, 2020
1 parent 4cc82f3 commit 0557622
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 @@ -331,7 +331,7 @@ protected function addContent($message, $view, $plain, $raw, $data)
if (isset($plain)) {
$method = isset($view) ? 'addPart' : 'setBody';

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

if (isset($raw)) {
Expand Down

0 comments on commit 0557622

Please sign in to comment.