Skip to content

Commit

Permalink
[fix] mailer ready to send message
Browse files Browse the repository at this point in the history
  • Loading branch information
katanyoo committed Nov 18, 2014
1 parent 34c99ce commit ba2c5a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ protected function sendMessage($message)
$message->setClickTracking($this->clicksTrackingMode)
->addTags($this->tags);

Yii::info('Sending email', __METHOD__);
$response = $this->getMailgunMailer()->post(
"{$this->domain}/messages",
$message->getMessage(),
$message->getFiles()
);

Yii::info('Sending email "'.$messageBldr->getSubject().'" to "'.$messageBldr->getTo(), __METHOD__);
Yii::info('Response : '.print_r($response, true), __METHOD__);

return true;
Expand Down
2 changes: 1 addition & 1 deletion Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Message extends BaseMessage
public function getMessageBuilder()
{
if (!is_object($this->_messageBuilder)) {
$this->_messageBuilder = $this->createSwiftMessage();
$this->_messageBuilder = $this->createMessageBuilder();
}

return $this->_messageBuilder;
Expand Down

0 comments on commit ba2c5a3

Please sign in to comment.