PHPMailer\PHPMailer
PHPMailer::__construct()
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() PHPMailer:: construct code WP 6.7.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'); }