Commit c6114017 by Jansa Jose

email

parent 0fbbda95
...@@ -485,7 +485,7 @@ public function forgot_mails($data,$rand_pwd){ ...@@ -485,7 +485,7 @@ public function forgot_mails($data,$rand_pwd){
$config = Array( $config = Array(
'protocol' => 'smtp', 'protocol' => 'smtp',
'smtp_host' => $settings->smtp_host, 'smtp_host' => $settings->smtp_host,
'smtp_port' => 25, 'smtp_port' => 587,
'smtp_user' => $settings->smtp_username, // change it to yours 'smtp_user' => $settings->smtp_username, // change it to yours
'smtp_pass' => $settings->smtp_password, // change it to yours 'smtp_pass' => $settings->smtp_password, // change it to yours
'smtp_timeout'=>20, 'smtp_timeout'=>20,
...@@ -500,7 +500,7 @@ public function forgot_mails($data,$rand_pwd){ ...@@ -500,7 +500,7 @@ public function forgot_mails($data,$rand_pwd){
$this->email->from($settings->admin_email); $this->email->from($settings->admin_email);
$this->email->to($data->email); $this->email->to($data->email);
$this->email->subject("Forgot Password - Tukkibi"); $this->email->subject("Forgot Password - Tukkibi");
$this->email->message("Hi ".$data->name.", Your New Password is :".$rand_pwd); $this->email->message("Hi ".$data->name.", Your New Password is : ".$rand_pwd);
$this->email->send(); $this->email->send();
echo $this->email->print_debugger(); echo $this->email->print_debugger();
return "EmailSend"; return "EmailSend";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment