PHPMailer\PHPMailer

PHPMailer::isErrorpublicWP 1.0

Check if an error occurred.

Method of the class: PHPMailer{}

No Hooks.

Returns

true|false. True if an error did occur

Usage

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

PHPMailer::isError() code WP 6.8.1

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