PHPMailer\PHPMailer\POP3::checkResponse PHP Method

checkResponse() protected method

Looks for for +OK or -ERR.
protected checkResponse ( string $string ) : boolean
$string string
return boolean
    protected function checkResponse($string)
    {
        if (substr($string, 0, 3) !== '+OK') {
            $this->setError(['error' => "Server reported an error: {$string}", 'errno' => 0, 'errstr' => '']);
            return false;
        } else {
            return true;
        }
    }