|
|
|
ENQUIRY
|
"."Address: ".$_POST['address'];
if($_POST['phoneno']!=""){
$message.=" "."Telephone: ".$_POST['phoneno'];}
if($_POST['mobileno']!=""){
$message.=" "."Mobile No: ".$_POST['mobileno'];}
if($_POST['webadd']!=""){
$message.=" "."Website : ".$_POST['webadd'];}
if($_POST['txtOccu']!=""){
$message.=" "."Occupation: ".$_POST['txtOccu'];}
if($_POST['txtEdu']!=""){
$message.=" "."Educational Qualification: ".$_POST['txtEdu'];}
if($_POST['comments']!=""){
$message.=" "."Required Information: ".$_POST['comments'];}
//echo $message;
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: '.$_POST['emailid'].'<'.$_POST['emailid'].'>' . "\r\n";
// Mail it
if(mail($to, $subject, $message, $headers)){
$stat = "SUCCESS";
}else{
$stat = "FAIL";
}
}
if($stat != ""){
?>
| Your enquiry has been sent successfully. |
| Error: Unable to send your enquiry. Please try agian. |
| |
| Click here to go back. |
|
|
|