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

init() public method

public init ( )
    public function init()
    {
        $this->name = \Yii::t('skeeks/cms', "Sending mail (function {mail})", ['mail' => 'mail']);
        $txt1 = \Yii::t('skeeks/cms', 'The system is transmitting a test letter to the postal address {email} through a standard php function {mail}.', ['mail' => 'mail', 'email' => '[email protected]']);
        $txt6 = \Yii::t('skeeks/cms', 'Created special mailbox, for maximality testing for real work.');
        $txt2 = \Yii::t('skeeks/cms', 'As a test message text is transferred the source code of the script checking site.');
        $txt3 = \Yii::t('skeeks/cms', 'No user data is not transmitted!');
        $txt4 = \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.');
        $txt5 = \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} {$txt6}
</p>
<p>
{$txt2}
</p>
<p>
<b>{$txt3}</b>
</p>
<p>
{$txt4}
</p>
<p>
{$txt5}
</p>
HTML;
        $this->errorText = \Yii::t('skeeks/cms', "Error");
        $this->successText = \Yii::t('skeeks/cms', "Successfully");
        parent::init();
    }

Usage Example

Example #1
0
 public function init()
 {
     parent::init();
     $this->name = \Yii::t('skeeks/cms', "Sending e-mail messages larger than 64 KB (function {mail})", ['mail' => 'mail']);
 }
MailCheck