session_start();
define("TITLE", "Christian Polygyny - Contact Information");
?>
include("header.php"); ?>
Contact
if($HTTP_GET_VARS['email'] == "yes"){
$postedsubject = $HTTP_POST_VARS['subject'];
$postedcontactemail = $HTTP_POST_VARS['contactemail'];
$postedmessage = $HTTP_POST_VARS['message'];
$headers = "From: Christian Polygyny User <".$postedcontactemail."> \n";
$headers .= "Reply-To: <".$postedcontactemail."> \n";
$headers .= "Return-Path: <".$postedcontactemail."> \n";
$headers .= "Organization: Christian Polygyny \n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$toAddress = "DukeOfMarshall@gmail.com";
$subject = $postedsubject; /* Email Message Submitted By Sender */
$receiptMessage = "You have received a message from a Christian Polygyny user.
----------Begin Message----------
"
."From: ".$postedcontactemail."
"
.$postedmessage."
----------End Message----------
";
mail($toAddress, $subject, $receiptMessage,$headers);
$contactmessage = "Your Message Was Sent Successfully";
} ?>
echo $contactmessage; ?>
include("footer.php"); ?>