PHPMailer\PHPMailer

SMTP::getError()publicWP 1.0

Get the latest error.

Method of the class: SMTP{}

No Hooks.

Return

Array.

Usage

$SMTP = new SMTP();
$SMTP->getError();

SMTP::getError() code WP 6.5.2

public function getError()
{
    return $this->error;
}