PHPMailer\PHPMailer
PHPMailer::__construct
Constructor.
Method of the class: PHPMailer{}
No Hooks.
Returns
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.9.1
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');
}