luya\console\commands\HealthController::actionMailer PHP Method

actionMailer() public method

Test Mail-Component (Use --verbose=1 to enable smtp debug output)
public actionMailer ( ) : boolean
return boolean Whether successfull or not.
    public function actionMailer()
    {
        try {
            if (Yii::$app->mail->smtpTest($this->verbose)) {
                return $this->outputSuccess("successfull connected to SMTP Server '" . Yii::$app->mail->host . "'");
            }
        } catch (\Exception $e) {
            return $this->outputError($e->getMessage());
        }
    }