<?php
if (empty($fromaddress)) {
echo "You must enter an email address.“;
} elseif ($image_verification != “chanced”) {
echo “Because of spambots trying to use this page, we need you to type the text of the graphic. Use your ‘back’ button and type that text please.“;
} else {
// create email for list request
$msg = $command;
$to = “neil@westlakerevelations.com”;
$fromstring = $fromname . ” “;
$headers = “From: $fromstring\r\n” .
“MIME-Version: 1.0\r\n” .
“Content-type: text/plain; charset=ISO-8859-1; format=flowed\r\n” .
“Content-Transfer-Encoding: 8bit\r\n” .
“X-Mailer: PHP/” . phpversion();

if($command == “Subscribe WestlakeRevelations”) {
mail(“mailings-subscribe@westlakerevelations.com”, $subject, $msg, $headers);
} else if($command == “Unsubscribe WestlakeRevelations”) {
mail(“mailings-unsubscribe@westlakerevelations.com”, $subject, $msg, $headers);
}
mail($to, $subject, $msg, $headers);
echo “Your request has successfully been sent.

You’ll receive an email to confirm. Once you respond to the email, you’re action will be complete.
“;
// echo “


For debugging purposes.
TO: ” . $to . “
SUBJECT: ” . $subject . “
MSG: ” . $msg . “
HEADERS: ” . $headers;
echo “


“;
echo “Click here for the debate video archive.

“;

}

?>













(Back to Home Page)