PHPMailer\PHPMailer

POP3::checkResponseprotectedWP 1.0

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

Method of the class: POP3{}

No Hooks.

Returns

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->checkResponse( $string );
$string(string) (required)
.

POP3::checkResponse() code WP 6.9.1

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

        return false;
    }

    return true;
}