Skip to content

Commit

Permalink
Merge pull request #4 from andrewdyer/fix-send-message
Browse files Browse the repository at this point in the history
Updated Mailable::sendMessage to return the number of successful reci…
  • Loading branch information
andrewdyer authored Sep 20, 2018
2 parents 8b9b0c9 + 2cafbc6 commit f813283
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mailer/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ public function detachFile(string $path)

/**
* @param Mailer $mailer
*
* @return int
*/
public function sendMessage(Mailer $mailer)
{
$this->build();

$mailer->sendMessage($this->view, $this->data, function ($message) {
return $mailer->sendMessage($this->view, $this->data, function ($message) {
$message->setTo($this->to['address'], $this->to['name']);
$message->setSubject($this->subject);

Expand Down

0 comments on commit f813283

Please sign in to comment.