Skip to content

Commit

Permalink
Return sending result.
Browse files Browse the repository at this point in the history
  • Loading branch information
nauxliu authored Feb 23, 2017
1 parent 1401c9e commit 8e35805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SendCloudTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
$body = $message->getBody();

if ($body instanceof SendCloudTemplate) {
$this->sendTemplate($message);
$result = $this->sendTemplate($message);
} else {
$this->sendRawMessage($message);
$result = $this->sendRawMessage($message);
}

$this->query = [];

return $result;
}

/**
Expand Down

0 comments on commit 8e35805

Please sign in to comment.