skeeks\cms\checks\MailerChecker::init PHP Method

init() public method

public init ( )
    public function init()
    {
        $this->name = \Yii::t('skeeks/cms', 'Sending mail (through the object {obj})', ['obj' => 'Mailer']);
        $txt1 = \Yii::t('skeeks/cms', 'The system is transmitting a test letter to the postal address {email} through the library {obj}.', ['email' => '[email protected]', 'obj', 'Mailer']);
        $txt2 = \Yii::t('skeeks/cms', 'Created special mailbox, for maximality testing for real work.');
        $txt3 = \Yii::t('skeeks/cms', 'As a test message text is transferred the source code of the script checking site.');
        $txt4 = \Yii::t('skeeks/cms', 'No user data is not transmitted!');
        $txt5 = \Yii::t('skeeks/cms', 'Please note that the test does not check the delivery letter in the mailbox. Moreover, it is impossible to test the delivery of mail to other mail servers.');
        $txt6 = \Yii::t('skeeks/cms', 'If the time of sending the letter more than a second, it can significantly slow down the work site. Contact your hosting provider to set up a pending request to send mail (through the spooler), or turn on the transfer of mail (and the work of agents) through {cron}. To do this we must add the constant into {file}:', ['cron' => 'cron', 'file' => 'dbconn.php']);
        $this->description = <<<HTML
<p>
{$txt1}
{$txt2}
</p>
<p>
{$txt3}
</p>
<p>
<b>{$txt4}</b>
</p>
<p>
{$txt5}
</p>
<p>
{$txt6}
</p>
HTML;
        $this->errorText = \Yii::t('skeeks/cms', "Error");
        $this->successText = \Yii::t('skeeks/cms', "Successfully");
        parent::init();
    }
MailerChecker