Country: $loc_country
State: $sel_cstate
City: $city
Mobile No: $mobile_no
Email Address: $email
Message: $message";
if($email!="")
{
$header = "From:".$email."\n";
}
else
{
$header = "From:webmaster@sonipaithani.com"."\n";
}
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
// Send
ini_set("sendmail_from","webmaster@".$_SERVER["SERVER_NAME"]);
$email_feed="info@sonipaithani.com";
$headers= 'From: '.$email_feed."\r\n" ;
$feed_subject="Thank you for enquiry";
$feed_body='Thank you for enquiry we will get back to you soon.';
$mail=@mail($sendto,$subject,$message_body,$header);
$feedback_mail=@mail($email,$feed_subject,$feed_body,$headers);
if($mail!="" || $feedback_mail!="")
{
$succ.="Mail sent successfully.";
}
}
else {
echo '';
}
}
if (isset($_POST['reset'])) {
header("location:contactus.php");
}
?>