getselectData(TPREFIX.TBL_DOWN_CONTACT,"*","singlerow","id DESC",'','','site_ids="'.$sitesettings->rand_siteid.'" AND type="contact" AND status="Active"'); if($_POST['submit'] == "Submit") { $name = strip_tags(htmlspecialchars($_POST['first_name'])); $email_address = strip_tags(htmlspecialchars($_POST['email'])); $phone = strip_tags(htmlspecialchars($_POST['phone'])); $addre = strip_tags(htmlspecialchars($_POST['message'])); $to = 'bestdesigninfotech2012@gmail.com'; $email_subject = "Contact from: $name"; $email_body = "$name has Contacted you.\n\n

"."Here are the details:\n\n

Name: $name\n\n

Email: $email_address\n\n

Phone:\n$phone\n\n

Message:\n$addre"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: info@bestdesigninfotech.com\n"; //$headers .= "Reply-To: $email_address"; if(mail($to,$email_subject,$email_body,$headers)) { header('location:Contact.php?msg=sent'); return true; } } ?>