Commit 55ca0ee7 by Jansa Jose

send mail

parent 22c6286e
...@@ -1158,12 +1158,12 @@ public function save_medicalrecord_finaldata() ...@@ -1158,12 +1158,12 @@ public function save_medicalrecord_finaldata()
if(!empty($_POST['obsr'])) if(!empty($_POST['obsr']))
{ {
$insert_array['other_observations'] = $_POST['obsr']; $insert_array['other_observations'] = encrypt_data($_POST['obsr']);
} }
if(!empty($_POST['main_complaint'])) if(!empty($_POST['main_complaint']))
{ {
$insert_array['main_complaint'] = $_POST['main_complaint']; $insert_array['main_complaint'] = encrypt_data($_POST['main_complaint']);
} }
if(!empty($insert_array)) if(!empty($insert_array))
......
...@@ -319,11 +319,11 @@ function send_mail($msg,$email,$sub) ...@@ -319,11 +319,11 @@ function send_mail($msg,$email,$sub)
'protocol'=>'smtp', 'protocol'=>'smtp',
'smtp_host'=>$settings->smtp_host, 'smtp_host'=>decrypt_data($settings->smtp_host),
'smtp_user'=>$settings->smtp_username, 'smtp_user'=>decrypt_data($settings->smtp_username),
'smtp_pass'=>$settings->smtp_password, 'smtp_pass'=>decrypt_data($settings->smtp_password),
'smtp_port'=>'587', 'smtp_port'=>'587',
......
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