protected function POP3::setError

5.x POP3.php protected POP3::setError($error)

Add an error to the internal error store. Also display debug output if it's enabled.

Parameters

string $error:

4 calls to POP3::setError()
POP3::catchWarning in inc/PHPMailer/src/POP3.php
POP3 connection error handler.
POP3::checkResponse in inc/PHPMailer/src/POP3.php
Checks the POP3 server response. Looks for for +OK or -ERR.
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 382

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 setError($error) 
 {
  $this->errors [] = $error;
  if ($this->do_debug >= 1) {
    echo '<pre>';
    foreach ($this->errors as $e) {
      print_r($e);
    }
    echo '</pre>';
  }
}