Ciao a tutti.

Ragazzi aiutatemi che non ho più la lucidità per...

chi mi sa dire per quale ragione questo semplice script non mi spedisce il messaggio di posta?

Grazie!


<?

$nome = $_POST ["nome"];
$email = $_POST ["email"];
$oggetto = $_POST ["oggetto"];
$messaggio = $_POST ["messaggio"];
$contatto = $_POST ["contatto2"];
$header = "From: " . $email . " <" . $contatto . ">\n";

$msg1="Thank you. Message sent!";
$msg2="Server error, try later...";
$msg3="Error!";

mail("$contatto", "$oggetto", "$messaggio", "$header");

if ($contatto=""){
print '&msg=' .$msg3;
} else if (mail("$contatto","$oggetto","$messaggio", "$header")) {
print '&msg=' .$msg1;
} else {
print '&msg=' .$msg2;
}
?>