Skip to content

Commit

Permalink
return whatever the mailer returns
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 20, 2019
1 parent b5aea6c commit 76c3d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ class Mailable implements MailableContract, Renderable
*/
public function send(MailerContract $mailer)
{
$this->withLocale($this->locale, function () use ($mailer) {
return $this->withLocale($this->locale, function () use ($mailer) {
Container::getInstance()->call([$this, 'build']);

$mailer->send($this->buildView(), $this->buildViewData(), function ($message) {
return $mailer->send($this->buildView(), $this->buildViewData(), function ($message) {
$this->buildFrom($message)
->buildRecipients($message)
->buildSubject($message)
Expand Down

0 comments on commit 76c3d4c

Please sign in to comment.