src/components/mailsender/DummyMailSender.php
<?php
/*
* This file is part of Account.
*
* (c) 2014 Nord Software
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace nord\yii\account\components\mailsender;
use Yii;
class DummyMailSender extends LocalMailSender
{
/**
* @inheritdoc
*/
public function send(array $config = [])
{
echo $config['body'];
Yii::$app->end();
}
}