ciao a tutti! ho questo codiche sulla pagina php di invio di un form di contatto:
codice:
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "info@effequattro.it";
// IL SOGGETTO DELLA MAIL
$subject = "Modulo proveniente dal sito www.effequattro.it";
// COSTRUIAMO IL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Nome e cognome: " . trim(stripslashes($_POST["Nome"])) . "\n";
$body .= "Mansione: " . trim(stripslashes($_POST["Mansione"])) . "\n";
$body .= "Azienda': " . trim(stripslashes($_POST["Azienda"])) . "\n";
$body .= "Indirizzo: " . trim(stripslashes($_POST["Indirizzo"])) . "\n";
$body .= "Telefono: " . trim(stripslashes($_POST["Telefono"])) . "\n";
$body .= "Fax: " . trim(stripslashes($_POST["Fax"])) . "\n";
$body .= "E-Mail: " . trim(stripslashes($_POST["Email"])) . "\n";
$body .= "Richieste e commenti: " . trim(stripslashes($_POST["Commento"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Form di contatto<info@effequattro.it>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO È ANDATO A BUON FINE...
echo "La mail è stata inoltrata con successo.";
} else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell'invio della mail.";
}
?>
la mail viene mandata ma DOPPIA!!
come mai?
che cosa c'e' di sbagliato??
grazie mille a tutti