Commit a7f21b24 by Klimov Paul

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

parent 487ee6e0
...@@ -9,6 +9,7 @@ namespace yii\swiftmailer; ...@@ -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 ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment