protected function POP3::checkResponse

5.x POP3.php protected POP3::checkResponse($string)

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

Parameters

string $string:

Return value

bool

2 calls to POP3::checkResponse()
POP3::connect in inc/PHPMailer/src/POP3.php
Connect to a POP3 server.
POP3::login in inc/PHPMailer/src/POP3.php
Log in to the POP3 server. Does not support APOP (RFC 2828, 4949).

File

inc/PHPMailer/src/POP3.php, line 365

Class

POP3
PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. 2) Opening and closing lots of POP3 connections can be quite slow. If you…

Namespace

PHPMailer\PHPMailer

Code

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

    return false;
  }

  return true;
}