mail-form: spam-filter tager den?
Jeg har det problem at spam-filteret ved google tager mail's sendt via min mail-form som spam.Nogen der har en idé til hvordan man får den til at holde op med det?
mail-form:
<?php
$send = $_REQUEST['send'];
$name = htmlspecialchars($_REQUEST['name']);
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
if ($send) {
if (empty($name) || $name == "name") {
$error1 = "You have to write your Name!\n";
$wrong = 1;
}
if (empty($email) || $email == "email") {
$error2 = "You have to write your E-mail!\n";
$wrong = 1;
} else {
if (!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $email)) {
$error2 = "You have typed a non-valid E-mail!\n";
$wrong = 1;
}
}
if (empty($message) || $message == "message") {
$error3 = "The Message field is empty!\n";
$wrong = 1;
}
if ($wrong != 1) {
mail("domaz.dk@gmail.com", "Mail fra domaz.dk", "<b>".$name."</b>\n<br><br>\n".stripslashes(text_out($message)), "From: $email\nContent-type: text/html");
echo "<div align=\"center\" style=\"padding: 10px; color: green;\"><b>Your message has been send!</b></div>\n";
} else {
$error_output = $error1."".$error2."".$error3;
}
}
?>
