Browse Source

'Yii::trace()' added to 'yii\swiftmailer\Mailer::send()'

tags/2.0.0-beta
Klimov Paul 11 years ago
parent
commit
a7f21b2402
  1. 2
      extensions/swiftmailer/yii/swiftmailer/Mailer.php

2
extensions/swiftmailer/yii/swiftmailer/Mailer.php

@ -9,6 +9,7 @@ namespace yii\swiftmailer;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\mail\BaseMailer; use yii\mail\BaseMailer;
use Yii;
/** /**
* Mailer based on SwiftMailer library. * Mailer based on SwiftMailer library.
@ -94,6 +95,7 @@ class Mailer extends BaseMailer
*/ */
public function send($message) public function send($message)
{ {
Yii::trace('Sending email message', __METHOD__);
return ($this->getSwiftMailer()->send($message->getSwiftMessage()) > 0); return ($this->getSwiftMailer()->send($message->getSwiftMessage()) > 0);
} }

Loading…
Cancel
Save