Skip to content

Commit

Permalink
[5.6] Render the right view when using Mailables for sending mails ju…
Browse files Browse the repository at this point in the history
…st in plain text format (#23981)

* Render the right view when sending mails just in plain text format (#23822)

* formatting

* Fixed code duplication
  • Loading branch information
czmole authored and taylorotwell committed Apr 25, 2018
1 parent 9fae4d5 commit f6a3f4f
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 $this->renderView($view ?: $plain, $data);
}

/**
Expand Down

0 comments on commit f6a3f4f

Please sign in to comment.