Commit eb60aaec by Serge Postrash
parent 648b9b70
......@@ -41,7 +41,7 @@ abstract class BaseMessage extends Object implements MessageInterface
public function send(MailerInterface $mailer = null)
{
if ($mailer === null && $this->mailer === null) {
$mailer = Yii::$app->getMail();
$mailer = Yii::$app->getMailer();
} elseif ($mailer === null) {
$mailer = $this->mailer;
}
......
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