";
$lastname=$_POST['lname'];//echo $lastname; echo "
";
$email = $_POST['email']; //echo $email; echo "
";
$phone = $_POST['phone']; //echo $phone; echo "
";
$department = $_POST['department']; //echo $department; echo "
";
$message = $_POST['message'];// echo $message; echo "
";
$to="info@kgssugar.com";
//$to="darshana@omwebsolution.com";
$subject="KGS : Contact Form";
$from = $email;
$body = "$firstname"." "."$lastname submitted the contact form:\n".
"First Name : $firstname\n".
"Last Name : $lastname\n".
"Email : $email \n".
"Phone : $phone\n".
"Department : $department \n ".
"Message : $message \n ";
$header .= "From: $from \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/plain\r\n";
//print_r($_POST);
if(mail($to,$subject,$body,$header))
{
$msg="Thank you for contact us we will contact you soon";
}
}
?>