The sender has found an interesting article on the web site of BRUNS Pflanzen. Just click to view:
http://www.bruns.de$urlsend
";
$email_betreff = "Mail from BRUNS Pflanzen ";
$header="From:$sender\n";
$header .= "Reply-To: $email_from_mail\n";
$header .= "X-Mailer: PHP/" . phpversion(). "\n";
$header .= "X-Sender-IP: $REMOTE_ADDR\n";
$header .= "Content-Type: text/html";
mail ($recipient,$email_betreff,$emailbody,$header);
echo 'Your e-mail has been sent
';
} else {
echo "Please check your details
";
/*
if (!eregi("@",$recipient)) echo "The e-mail address of the recipient seems to be incorrect
";
if (!eregi("@",$sender)) echo "The e-mail address of the sender seems to be incorrect
";
if (eregi(",",$recipient)) echo "Please only insert one e-mail address of recipient
";
if (eregi(";",$recipient)) echo "Please only insert one e-mail address of recipient
";
*/
if (ereg(",",$recipient)||ereg(";",$recipient)) echo "Please only insert one e-mail address of recipient
";
else
{
if(!eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$", $sender)) echo "The e-mail address of the sender seems to be incorrect
";
if(!eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$", $recipient)) echo "The e-mail address of the recipient seems to be incorrect
";
}
$back = "http://". $SERVER_NAME.$SCRIPT_NAME;
echo 'back';}
}
// echo "
".$HTTP_REFERER;
?>