Mortgage calculator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
902 B

define('WP_USE_THEMES', false);
global $wp, $wp_query, $wp_the_query, $wp_rewrite, $wp_did_header;
$message = "Mortgage calculator\r\nUser IP: ".$_SERVER['REMOTE_ADDR'];
$message .= "\r\nPrice: ".$_GET['price'];
$message .= "\r\nDown payment: ".$_GET['payment'];
$message .= "\r\nInterest rate: ".$_GET['interest'];
$message .= "\r\nTax: ".$_GET['tax'];
$message .= "\r\nInsurance: ".$_GET['insurance'];
$message .= "\r\nTerm: ".$_GET['term'];
$message .= "\r\nPMI: ".$_GET['pmi'];
$message .= "\r\nName: ".$_GET['name'];
$message .= "\r\nEmail: ".$_GET['email'];
$message .= "\r\nPhone: ".$_GET['phone'];
$message = wordwrap($message, 70, "\r\n");
mail(get_bloginfo('admin_email'), 'Mortgage Calculator', $message);
echo "Thank you for your interest in getting a mortgage through Stewardship! We have your information and will be in contact with you soon.";