SMTP::__construct PHP Method

__construct() public method

Initialize the class so that the data is in a known state.
public __construct ( )
    public function __construct()
    {
        $this->smtp_conn = 0;
        $this->error = null;
        $this->helo_rply = null;
        $this->do_debug = 0;
    }

Usage Example

Esempio n. 1
0
 /**
  * Direct invocation of the constructor is not permitted.
  */
 protected function __construct(array $config)
 {
     $config['smtp_host'] = 'smtp.sendgrid.net';
     $config['smtp_port'] = 465;
     $config['smtp_security'] = 'ssl';
     $config['smtp_user'] = $config['api_user'];
     $config['smtp_pass'] = $config['api_pass'];
     parent::__construct($config);
 }
All Usage Examples Of SMTP::__construct