";
$emailstr .= "Surname: " . $surname . "\n
";
$emailstr .= "State: " . $state . "\n
";
$emailstr .= "Postcode: " . $postCode . "\n
";
$emailstr .= "Day Phone: " . $dayPhone . "\n
";
$emailstr .= "Night Phone: " . $nightPhone . "\n
";
$emailstr .= "Email: " . $email . "\n
";
$emailstr .= "Best time: " . $bestTime . "\n
";
$emailstr .= "Gender: " . $gender . "\n
";
$emailstr .= "DOB: " . $dobday . "/" . $dobmonth . "/" . $dobyear . "\n
";
$emailstr .= "Height: " . $height . "\n
";
$emailstr .= "Weight: " . $weight . "\n
";
$emailstr .= "How much Life Insurace cover do you required: " . $coverRequired . "\n
";
$emailstr .= "Include TPD cover: " . $tpdCover . "\n
";
$emailstr .= "Include Trauma cover: " . $traumaCover . "\n
";
$emailstr .= "Include Income protection: " . $incomeProtection . "\n
";
$emailstr .= "Employment Status: " . $employmentStatus . "\n
";
$emailstr .= "When to paid: " . $whenPaid . "\n
";
$emailstr .= "For how long: " . $howLong . "\n
";
$emailstr .= "Occupation: " . $occupation . "\n
";
$emailstr .= "Work industry: " . $industry . "\n
";
$emailstr .= "Smoker: " . $smoker . "\n
";
$emailstr .= "Medication: " . $medication . "\n
";
$emailstr .= "Alzheimer's Disease: " . $tr11 . "\n
";
$emailstr .= "Asthma: " . $tr12 . "\n
";
$emailstr .= "Cancer: " . $tr13 . "\n
";
$emailstr .= "Cholesterol: " . $tr21 . "\n
";
$emailstr .= "Depression: " . $tr22 . "\n
";
$emailstr .= "Diabetes: " . $tr23 . "\n
";
$emailstr .= "Heart Disease: " . $tr24 . "\n
";
$emailstr .= "Hypertension: " . $tr25 . "\n
";
$emailstr .= "Kidney Disease: " . $tr31 . "\n
";
$emailstr .= "Liver Disease: " . $tr32 . "\n
";
$emailstr .= "Mental Illness: " . $tr33 . "\n
";
$emailstr .= "Pulmonary Disease: " . $tr34 . "\n
";
$emailstr .= "Stroke: " . $tr35 . "\n
";
$emailstr .= "Ulcers: " . $tr41 . "\n
";
$emailstr .= "Vascular Disease: " . $tr42 . "\n
";
$emailstr .= "Other: " . $tr43 . "\n
";
// 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: QuoteRequest@{$_SERVER['SERVER_NAME']}\r\n";
$subject = "Quote Request";
$to = "tam@clubmigo.com";
$message = $emailstr;
if(@mail($to, $subject, $message, $headers)){
//notify me
echo "
";
echo "
";
echo "Your quote request has been sent. We will contact you shortly. Thank you.";
echo " |
";
//@mail($signupEmail, ucwords($firstname)." has joined", ucwords($firstname)." has joined", "From: signup@{$_SERVER['SERVER_NAME']}\r\n");
} else {
echo "Email could not sent.";
}
} else {
showForm();
}
?>
function showForm(){
?>
}
function ifOn( $val ){
if( $val == "on" ){
return("yes");
} else {
return("no");
}
}
?>