Skip to content
Snippets Groups Projects
Commit a6e89f65 authored by Peter Rotich's avatar Peter Rotich
Browse files

Cast auth

parent 07e1ed87
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class Email {
$info = array (
'host' => $this->ht['smtp_host'],
'port' => $this->ht['smtp_port'],
'auth' => $this->ht['smtp_auth'],
'auth' => (bool) $this->ht['smtp_auth'],
'username' => $this->ht['userid'],
'password' => Mcrypt::decrypt($this->ht['userpass'], SECRET_SALT)
);
......@@ -305,7 +305,7 @@ class Email {
$smtp = mail::factory('smtp',
array ('host' => $vars['smtp_host'],
'port' => $vars['smtp_port'],
'auth' => $vars['smtp_auth']?true:false,
'auth' => (bool) $vars['smtp_auth'],
'username' =>$vars['userid'],
'password' =>$passwd,
'timeout' =>20,
......
......@@ -139,7 +139,7 @@ class Mailer {
$mail = mail::factory('smtp',
array ('host' => $smtp['host'],
'port' => $smtp['port'],
'auth' => $smtp['auth']?true:false,
'auth' => $smtp['auth'],
'username' => $smtp['username'],
'password' => $smtp['password'],
'timeout' =>20,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment