ob_start();
ob_clean();
session_start();
extract($_REQUEST);
$Date=date('Y-m-d h:m:s',time());
//$success=$_GET['success'];
//$error=$_GET['error'];
if(isset($_POST['Submit']))
{
if(empty($_SESSION['letters_code'] ) ||
strcasecmp($_SESSION['letters_code'], $_POST['letters_code']) != 0)
{
$errors = "\n The Captcha Verification does not match!!!";
echo "";
}
if(empty($errors))
{
// $ins_enquiry =mysql_query("insert into enquiry set name='$name', mobile='$mobile', email='$email',subject='$subject',message='$message',type='Contact Enquiry', adate='$Date'");
$messages= '
|
Vishakan Biotech |
|
Enquiry Details From '.$name.' |
|
Name |
'.$name.' |
|
Email id |
'.$email.' |
|
Mobile Number |
'.$mobile.' |
|
Subject |
'.$subject.' |
|
Message |
'.$message.' |
|
|
';
$subject="Enquiry Details From ".$name;
$to="sujith123tws@gmail.com";
// Additional headers
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Sender: ' . "\r\n";
$headers .= 'From: '.$name.' ' . "\r\n";
$headers .= 'Reply-To: '.$name.' <'.$email.'>' . "\r\n";
$res1=mail($to , $subject, $messages, $headers, '-fnoreply@vishakanbiotech.com');
if($res1)
{
$msg="Thanks for your enquiry and our team will get back to you shortly!!!";
echo ("");
}
}
}
// echo $messages;
?>
Conatct Us
include 'header.php'; ?>
include 'footer.php'; ?>