ciao ho fatto così
codice:
</html>
";
// costruiamo alcune intestazioni generali
$headers = "From: Info Salento <info@viagginelsalento.it>" . "\r\n";
//$headers .= "Bcc: Staff Salento.IT <staff@viagginelsalento.it>\n";
$headers .= "Bcc: Daniele <dani@tin.it>\n";
$headers .= "X-Mailer: Salento\n";
// costruiamo le intestazioni specifiche per il formato HTML
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$headers .= "Content-Transfer-Encoding: 7bit\n\n";
// Invia un mail per controllo
if ( mail($destinatari, $oggetto, $messaggio, $headers))
{
header("Location: http://www.sito.it/formMail.asp?email=$mail");
}
else echo "NON FUNZIONA mail()";
?>
e mi restituisce questo errore
codice:
http://www.sito.it/form2.asp?date-from=07%2F01%2F2008&date-to=07%2F01%2F2008&ospiti=1+ospite&camere=1+camera&struttura=HOTEL+TIZIO%2C+Lecce&submit=PRENOTAhttp://www.sito.it/form.asp?date-from=07%2F01%2F2008&date-to=07%2F01%2F2008&ospiti=1+ospite&camere=1+camera&struttura=HOTEL+TIZIO%2C+Lecce&submit=PRENOTAhttp://www.sito.it/tizio.htmNON FUNZIONA mail()