/** * 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); }
/** * Direct invocation of the constructor is not permitted. */ protected function __construct(array $config) { $config['smtp_host'] = 'smtp.mandrillapp.com'; $config['smtp_port'] = 465; $config['smtp_security'] = 'ssl'; $config['smtp_user'] = $config['api_user']; $config['smtp_pass'] = $config['api_token']; parent::__construct($config); }
/** * Direct invocation of the constructor is not permitted. */ protected function __construct(array $config) { $config['smtp_host'] = 'smtp.postmarkapp.com'; $config['smtp_port'] = 587; $config['smtp_security'] = 'tls'; $config['smtp_user'] = $config['api_token']; $config['smtp_pass'] = $config['api_token']; parent::__construct($config); }
public function __construct() { $host = Controller::getEnvironmentData('SMTP_HOST'); $port = Controller::getEnvironmentData('SMTP_PORT'); $scheme = Controller::getEnvironmentData('SMTP_SCHEME'); $user = Controller::getEnvironmentData('SMTP_USER'); $pw = Controller::getEnvironmentData('SMTP_PASS'); parent::__construct($host, $port, $scheme, $user, $pw); // error handling $this->set('Errors-to', '' . Controller::getEnvironmentData('SMTP_ERROR') . '>'); $this->set('MIME-Version', '1.0'); $this->set('Content-Type', 'text/html; charset=ISO-8859-1'); }