Salve ho un problema con l'inoltro delle mail con html il mio script è il seguente:
<?
$oggetto = "Prenotazione on line - nuova richiesta";
$body = "<html><body>";
$body = $body . "Cognome: " . "" . stripslashes($cognome) . "" . "
";
$body = $body . "Nome: " . "" . stripslashes($nome) . "" . "
";
$body = $body . "Località: " . "" . stripslashes($localita) . "" . "
";
$body = $body . "Provincia: " . "" . stripslashes($provincia) . "" . "
";
$body = $body . "Telefono: " . "" . stripslashes($telefono) . "" . "
";
$body = $body . "Email o altri contatti: " . "" . stripslashes($contatti) . "" . "
";
$body = $body . "Richiesta informazioni:" . "[b]";
$body = $body . stripslashes(t2h($quesito)) ."
";
$body = $body . "Inoltrata in data: " . "" . date("d/m/Y H:i:s",time()) . "" . "
";
$body = $body . "
</body></html>";
$dest = "info@casaabini.it";
$intestazioni = "MIME-Version: 1.0\r\n";
$intestazioni .= "Content-type: text/html; charset=iso-8859-1\r\n";
$intestazioni .= "To: $dest <$dest>\r\n";
$intestazioni .= "From: $email <Casa Albini>\r\n";
?>
<? if (mail($dest, $oggetto, $body, $intestazioni)) { ?>
ma l'if mi restituisce sempre falso.
secondo me l'errore è sulle intestazioni, come posso correggere l'errore?