File: /home/ffeilden.com/public_html/Archives/mailer.php
<?php
// remember to replace you@email.com with your own email address lower in this code.
// load the variables form address bar
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$from = $_REQUEST["from"];
$verif_box = $_REQUEST["verif_box"];
// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$from = stripslashes($from);
// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
// if verification code was correct send the message and show this page
mail("info@ffeilden.com", 'Website inquiry: '.$subject, "\n\n".$message, "From: $from");
// delete the cookie so it cannot sent again by refreshing this page
setcookie('tntcon','');
} else {
// if verification code was incorrect then return to contact page and show error
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
exit;
}
?>
<html>
<head>
<title>ffeilden</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
<META CONTENT="document" NAME="resource-type">
<META CONTENT="A residential and commercial real estate company and consultancy, for English speaking customers living in or near Kobe and Ashiya" NAME="description">
<META CONTENT="real estate, property, kobe, ashiya, apartments, houses, okamoto, rokko, mikage, estate agents, business development" NAME="keywords">
<META CONTENT="global" NAME="distribution">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table width="710" border="0" cellpadding="5">
<?php include("includes/top_menu_e.inc"); ?>
<tr valign="top">
<td colspan="4"> <h2> Contact Us
</h2>
<p>Thank you! We will respond to you shortly. <br>
</p>
<p> </p></td>
<td>
<p>
<?php include("includes/property_rent.inc"); ?>
</p>
<p>
<?php include("includes/property_sale.inc"); ?>
</p>
<p>
<?php include("includes/sub_menu.inc"); ?>
</p></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
<td><img src="images/spacer.gif" width="8" height="1" /></td>
<td><img src="images/spacer.gif" width="8" height="1" /></td>
<td><img src="images/spacer.gif" width="350" height="1" /></td>
<td><img src="images/spacer.gif" width="150" height="1" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td><div align="center"><?php include("includes/footer_e.inc"); ?></div></td>
<td> </td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
</table>
</div>
</body>
</html>