public function PHPMailer::__construct

5.x PHPMailer.php public PHPMailer::__construct($exceptions = null)

Constructor.

Parameters

bool $exceptions Should we throw external exceptions?:

File

inc/PHPMailer/src/PHPMailer.php, line 769

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

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');
}