Ho diversi siti su xyz, in tutti i siti il modulo contatti, con il suo file php, non funziona.
Il modulo invia correttamente le email a me (
) ma quando inserisco l'email del cliente (email creata con Gmail), oppure un email di Libero il modulo non funziona più!
Le email vengono spedite, ma spariscono nel nulla...
Nessuno ha un modulo, classico, CONTATTI a prova di xyz?
L'ho fatto visionare da un programmatore, dice che xyz fa questi scherzi con le email.
Questo il codice del file .php
codice:
<?php
// Website Contact Form Generator
// get posted data into local variables
$EmailFrom = "Sito web - Nome Sito";
$EmailTo = "email@delcliente.com";
$Subject = "Email dal modulo ISCRIVITI";
$Nome = Trim(stripslashes($_POST['Nome']));
$Cognome = Trim(stripslashes($_POST['Cognome']));
$Email = Trim(stripslashes($_POST['Email']));
$Citta = Trim(stripslashes($_POST['Citta']));
$Provincia = Trim(stripslashes($_POST['Provincia']));
$Indirizzo = Trim(stripslashes($_POST['Indirizzo']));
$Telefono = Trim(stripslashes($_POST['Telefono']));
$Cellulare = Trim(stripslashes($_POST['Cellulare']));
$Messaggio = Trim(stripslashes($_POST['Messaggio']));
// validation
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "Nome: ";
$Body .= $Nome;
$Body .= "\n";
$Body .= "\n";
$Body .= "Cognome: ";
$Body .= $Cognome;
$Body .= "\n";
$Body .= "\n";
$Body .= "Email: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "\n";
$Body .= "Citta': ";
$Body .= $Citta;
$Body .= "\n";
$Body .= "\n";
$Body .= "Provincia: ";
$Body .= $Provincia;
$Body .= "\n";
$Body .= "\n";
$Body .= "Indirizzo: ";
$Body .= $Indirizzo;
$Body .= "\n";
$Body .= "\n";
$Body .= "Telefono: ";
$Body .= $Telefono;
$Body .= "\n";
$Body .= "\n";
$Body .= "Cellulare: ";
$Body .= $Cellulare;
$Body .= "\n";
$Body .= "\n";
$Body .= "Messaggio: ";
$Body .= $Messaggio;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>
... disperato