$sent = 0; if(!empty($_POST['OWNER_EMAIL'])) { // send comments $msg = "A free comparative policy quote has just been requested from premereagency.com/quote.php:\n------------------------------\n\n"; $msg .= "Owner Information"; $msg .= "\n Name: ".$_POST['OWNER_NAME']; $msg .= "\n Email: ".$_POST['OWNER_EMAIL']; $msg .= "\n Fax: ".$_POST['OWNER_FAX']; $msg .= "\n Daytime Phone: ".$_POST['OWNER_PHONE_DAY']; $msg .= "\n Evening Phone: ".$_POST['OWNER_PHONE_EVENING']; $msg .= "\n Oldest Owner's Age: ".$_POST['OWNER_AGE']; $msg .= "\n Call Time: ".$_POST['OWNER_CALL_TIME']; $msg .= "\n\nHome Information"; $msg .= "\n Home Usage: ".$_POST['HOME_USAGE']; $msg .= "\n Purchased: ".$_POST['HOME_PURCHASE_MONTH']." ".$_POST['HOME_PURCHASE_YEAR']; $msg .= "\n Street Address: ".$_POST['HOME_ADDRESS']; $msg .= "\n City: ".$_POST['HOME_CITY']; $msg .= "\n County: ".$_POST['HOME_COUNTY']; $msg .= "\n State: ".$_POST['HOME_STATE']; $msg .= "\n Zip: ".$_POST['HOME_ZIP']; $msg .= "\n Manufacturer: ".$_POST['HOME_MANUFACTURER']; $msg .= "\n Year Manufactured: ".$_POST['HOME_YEAR']; $msg .= "\n Size: ".$_POST['HOME_LENGTH']." X ".$_POST['HOME_WIDTH']; $msg .= "\n Distance to Fire Dept: ".$_POST['HOME_TO_FIRE_DEPT']; $msg .= "\n Distance to Coast: ".$_POST['HOME_TO_COAST']; $msg .= "\n Skirted: ".$_POST['HOME_SKIRTED']; $msg .= "\n Tied Down: ".$_POST['HOME_TIED_DOWN']; $msg .= "\n Land Owned: ".$_POST['HOME_LAND_OWNED']; $msg .= "\n Foundation: ".$_POST['HOME_FOUNDATION']; $msg .= "\n Type of Siding: ".$_POST['HOME_SIDING']; $msg .= "\n\nHome Location"; $msg .= "\n In City Limits: ".$_POST['HOME_IN_CITY_LIMITS']; $msg .= "\n In Land Lease Park: ".$_POST['HOME_IN_PARK']; $msg .= "\n In Flood Area: ".$_POST['HOME_IN_FLOOD_AREA']; $msg .= "\n\nMortgage Information"; $msg .= "\n Type: ".$_POST['MORTGAGE']; $msg .= "\n Current Lien Holder: ".$_POST['CURRENT_LIEN_HOLDER']; $msg .= "\n Dwelling Insurance Amount: ".$_POST['DWELLING_COVERAGE_REQUESTED']; $msg .= "\n Questions/Comments: ".$_POST['COVERAGE_QUESTIONS_COMMENTS']; $msg .= "\n------------------------------"; if(!mail("diana@premereagency.com", "Comparative Policy Quote Requested", $msg, "From: ".$_POST['OWNER_EMAIL']."\r\n")) $sent = 0; else $sent = 1; } ?>
![]() |
|||
|---|---|---|---|
|
|
||