PHPMailer\PHPMailer

POP3::checkResponseprotectedWP 1.0

Checks the POP3 server response. Looks for for +OK or -ERR.

Метод класса: POP3{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->checkResponse( $string );
$string(строка) (обязательный)
.

Код POP3::checkResponse() WP 6.9

protected function checkResponse($string)
{
    if (strpos($string, '+OK') !== 0) {
        $this->setError("Server reported an error: $string");

        return false;
    }

    return true;
}