if ($action == "subscribe"){
$recipient = "requests-subscribe@yahoogroups.com";
$subject = "subscribe";
$message = " ";
$headers = "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: ".$fromemail."\n";
$headers .= "X-Sender: ".$recipient."\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: ".$recipient."\n";
mail($recipient, $subject, $message, $headers);
header("Location: thank_you.html");
} elseif ($action == "unsubscribe"){
$recipient = "requests-unsubscribe@yahoogroups.com";
$subject = "unsubscribe";
$message = " ";
$headers = "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: ".$fromemail."\n";
$headers .= "X-Sender: ".$recipient."\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: ".$recipient."\n";
mail($recipient, $subject, $message, $headers);
header("Location: thank_you.html");
}
?>
HolinessMusic Online Radio