PHPMailer::__construct PHP Method

__construct() public method

Constructor.
public __construct ( boolean $exceptions = null )
$exceptions boolean Should we throw external exceptions?
    public function __construct($exceptions = null)
    {
        if ($exceptions !== null) {
            $this->exceptions = (bool) $exceptions;
        }
    }

Usage Example

Example #1
0
 public function __construct()
 {
     // use PHPMailer with exceptions
     parent::__construct(true);
     // allow an "empty" body to be sent
     $this->AllowEmpty = true;
 }
All Usage Examples Of PHPMailer::__construct