CONFERMA INVIO MAIL
"; // L'INDIRIZZO DEL DESTINATARIO DELLA MAIL $to = "ingstefanobasso@gmail.com"; // IL SOGGETTO DELLA MAIL $subject = "Richiesta preventivo ricerca perdite acqua tubazioni (schede-tecniche)"; // COSTRUIAMO IL CORPO DEL MESSAGGIO $body = "Informazioni inserite nel modulo:\n\n"; $body .= "Nominativo: " . trim(stripslashes($_POST["nome"])) . "\n"; $body .= "Città: " . trim(stripslashes($_POST["citta"])) . "\n"; $body .= "Provincia: " . trim(stripslashes($_POST["provincia"])) . "\n"; $body .= "Email: " . trim(stripslashes($_POST["Email"])) . "\n"; $body .= "Telefono: " . trim(stripslashes($_POST["telefono"])) . "\n"; $body .= "Desidero: " . trim(stripslashes($_POST["tipo-contatto"])) . "\n"; $body .= "Messaggio: " . trim(stripslashes($_POST["Note"])) . "\n"; $body .= "Informativa Privacy: " . trim(stripslashes($_POST["Privacy"])) . "\n"; // INVIO DELLA MAIL if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO � ANDATO A BUON FINE... echo "Grazie per averci contattati. La richiesta è stata inoltrata con successo." ."
"; echo "Vi risponderemo entro 2 giorni lavorativi dalla richiesta."; } else {// ALTRIMENTI... echo "Si sono verificati dei problemi. Reinviare il form."; } ?>