<?php

//declare variables and give values carried from subscribe.php
$fromaddress=$_POST['from_address'];
$fromname=$_POST['from_name'];
$image_verification=$_POST['image_verification'];
$command=$_POST['Command'];
$subject=$command;

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”;
$headers = “From: $fromname \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.“;

}

?>













(Back to Home Page)