Commit 83a0a42a by Jansa Jose

mail

parent 59d12434
......@@ -311,13 +311,13 @@ function send_mail($msg,$email,$sub)
$settings = $CI->db->get('settings')->row();
/*//print_r($msg);die();
//print_r($msg);die();
$configs = array(
'protocol'=>'smtp',
'protocol'=>'mail',
'smtp_host'=>decrypt_data($settings->smtp_host),
......@@ -325,7 +325,7 @@ function send_mail($msg,$email,$sub)
'smtp_pass'=>decrypt_data($settings->smtp_password),
'smtp_port'=>'25',
'smtp_port'=>25,
'smtp_timeout'=>20,
......@@ -335,20 +335,8 @@ function send_mail($msg,$email,$sub)
'wordwrap' => TRUE
); */
$smtp_host = "techlabz.in";
$smtp_password = 'Golden_123';
$smtp_username = "[email protected]";
//print_r($smtp_username);
$host = $smtp_host;
$pass= $smtp_password;
$username = $smtp_username;
$configs['protocol'] = 'mail';
$configs['smtp_host'] = $host;
$configs['smtp_user'] = $username;
$configs['smtp_pass'] = $pass;
$configs['smtp_port'] = 25;
$configs['mailtype'] = 'html';
);
$CI->load->library('email', $configs);
......@@ -361,7 +349,7 @@ function send_mail($msg,$email,$sub)
->from($settings->admin_email, 'Ipok')
->to('[email protected]')
->to($email)
->subject($sub)
......@@ -369,8 +357,6 @@ function send_mail($msg,$email,$sub)
$CI->email->send();
}
......
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