"user_email","type"=>array("EMAIL"=>"Email must be a valid email eg:abc.xyz@gmail.com"))));
if ((strtolower($pmethod['word_code'])!=strtolower($_SESSION['php_captcha']))){//Validate pattern
$valid_data['err_flag']=1;
$valid_data['msg'].="*Word Verification
";
}
if(!$valid_data['err_flag']){//Data has been validated
$mail_inqform_content=getInquirydetails($funcObj);
$email_style=getMailStyle();
/* Mail to Admin */
$to1=SITE_EMAIL;
$from1=ms_stripslashes($pmethod['user_email']);
$subject1="A new enquiry has been received at ".WEBSITE_NAME;
$body1=$email_style;
$body1.="Dear Admin,
A new enquiry has been received with following details
";
$body1.=$mail_inqform_content;
$body1.="
Thank You!!
";
$x1=mail($to1,$subject1,$body1,"From:".SITE_FROM."<$from1>\nContent-Type: text/html; charset=iso-8859-1\nReply-To: $from1\n");
/* Mail to Customer */
$to2=ms_stripslashes($pmethod['user_email']);
$from2=SITE_EMAIL;
$subject2="Enquiry placed at ".WEBSITE_NAME;
$body2=$email_style;
$body2.="Dear ".ms_stripslashes($pmethod['fuser_name']).",
Thank you for placing an enquiry
".WEBSITE_NAME." team will contact you in 48 hours.
Details of the enquiry is listed below
";
$body2.=$mail_inqform_content;
$body2.="
Please feel free to contact us if you have any questions at all.
Thank You!!
".WEBSITE_NAME." Team";
# $x2=mail($to2,$subject2,$body2,"From:".SITE_FROM."<$from2>\nContent-Type: text/html; charset=iso-8859-1\nReply-To: $from2\n");
if(($_SERVER[HTTP_HOST]=='localhost') || ($x1 && $x2)){
$_SESSION['msg_front']="Thanks For The Query.We will revert to you soon.~msgadminsucc";
header("location:contact-us.htm");
exit;
}else{
$_SESSION['msg_front']="Mail failed. Please try again.~msgadminerr";
}
}else{
$_SESSION['msg_front']="Following fields needs to be correct:
".$valid_data[msg]."~msgadminerr";
}
}else{
$_SESSION['msg_front']="Please specify following fields :
".$empty_fld[msg]."~msgadminerr";
}
}
if(!empty($_POST)){
@extract($_POST);
}
?>

Jyoti Group
ADDRESS : Jyoti Threads India Ltd., Bhawanigarh Road, Samana Distt. Patiala (Punjab)
Phone and Fax : +91-01764-220501
Mr. Madan singla(CMD) : +91-9814221443
Mr. Ashok Singla(Director) : +91-9914371555
Mr. Manish singla(director) :
(for export and import enquiry) +91-9888676000, 9357622228
Mr. Naresh singla(Director) : +91-9988864000
Email Id : mmsingla@gmail.com
Visit Us on : www.jyotigroup.com & www.jyoticotspin.com
Enquiry
Our contact info
www.jyotigroup.com
www.jyoticotspin.com
+91-9814221443,
+91-9888676000,
+91-9914371555
Jyoti Threads India LTD.,
Bhawanigarh Road Samana
Distt. Patiala (Punjab)