- Impact
- 91
Code:
<?php
$EmailFrom = " Sites Subscription";
$EmailTo = "[email protected]";
$Subject = "New User Submission";
$E-mail = Trim(stripslashes($_POST['E-mail']));
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
$Body = "";
$Body .= "E-mail: ";
$Body .= $E-mail;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
echo "thank you for submission. You will receive new proxies almost every day. To unsubscribe please send me a mail directly at the email listed at the top of the main site";
} else {
echo "Unknown Failure. Please send me a mail directly at the email listed at the top of the main site";
}
?>
please tell me what is wrong in this above code. this is sending no output.. nor does it display anything.. just a blank page
thanks







