if (isset($invio)) { function is_email_valid($fromSS) { if(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $fromSS)) return TRUE; else return FALSE; } if (is_email_valid($fromSS)) { $email_ad = "OK"; } else { $email_ad = "NO"; } if ($email_ad == "OK" && $testo != "") { $send = "OK"; } else { $send = "NO"; } ?>
![]() |
|||
![]() |
![]() |
||
![]() ![]() |
if ($send == "OK") { echo " "; } else { ?>
a:
Emanuele Mosconi emanuele@chefathome.it } ?> |
if ($send == "NO") { if ($email_ad == "NO" && $email == ""){ echo " email mancante ";
}
if ($email_ad == "NO" && $email != ""){
echo " email non valida ";
}
if ($testo == ""){
echo " messaggio mancante ";
}
}
?>
if ($send == "OK") {
$recipient = "emanuele@chefathome.it";
$subject = "mail from chefathome";
$message .= "";
$message .= "$testo";
$fromSS = urldecode($fromSS);
if (eregi("\r",$fromSS)||(eregi("\n",$fromSS){
die("error");
}
if (isset($nome)) { $headers .= "From: $nome <$email>\n";
} else { $headers .= "From: $email\n"; }
$headers .= "X-Sender: Il tuo messaggio è stato inviato correttamente ";
} else {
?>
} ?> |
|
Emanuele Mosconi emanuele@chefathome.it +39 335 6215343 |
if ($send == "OK") { echo " "; } else { ?>(*) = campi obbligatori |
||
![]() |
|||
![]() |
![]() |
||
![]() ![]() |
a:
Emanuele Mosconi emanuele@chefathome.it |
|
|
Emanuele Mosconi emanuele@chefathome.it +39 335 6215343 |
(*) = campi obbligatori |
||