PHPMailer\PHPMailer

PHPMailer::isError()publicWP 1.0

Check if an error occurred.

Method of the class: PHPMailer{}

No Hooks.

Return

true|false. True if an error did occur

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->isError();

PHPMailer::isError() code WP 6.5.2

public function isError()
{
    return $this->error_count > 0;
}