PHPMailer\PHPMailer

PHPMailer::__construct()publicWP 1.0

Constructor.

Method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing (null).

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->__construct( $exceptions );
$exceptions(true|false)
Should we throw external exceptions?
Default: null

PHPMailer::__construct() code WP 6.5.2

public function __construct($exceptions = null)
{
    if (null !== $exceptions) {
        $this->exceptions = (bool) $exceptions;
    }
    //Pick an appropriate debug output format automatically
    $this->Debugoutput = (strpos(PHP_SAPI, 'cli') !== false ? 'echo' : 'html');
}