<?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”;
$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 SoapBoxDerby”) {
mail(“SoapBoxDerby-subscribe@westlakerevelations.com”, $subject, $msg, $headers);
} else if($command == “Unsubscribe SoapBoxDerby”) {
mail(“SoapBoxDerby-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.“;
}
?>