Salve a tutti, vorrei chiedervi lumi riguardo un problema su uno script php che non funziona sul mio sito web (vi premetto che il sito è montato su server aruba.it, che supporta php 4.0); il punto è che esso dovrebbe raccogliere le variabili contenute nello script di un file flash, quindi trasferirle ad un indirizzo email; ho provato diverse volte e niente di niente!
lo script è il seguente:
<?php
$nome = stripslashes($_POST['nome']);
$cognome = stripslashes($_POST['cognome']);
$telefono = stripslashes($_POST['telefono']);
$mittente = stripslashes($_POST['mittente']);
$richiesta = stripslashes($_POST['richiesta']);
$sms = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contatti</title>
</head>
<body style="margin:0px;">
<table cellpadding="0" cellspacing="0" style="height:100%;width:500px;">
<tr>
<td style="height:100%;padding:20px;vertical-align:top;">
<table>
<tr><td colspan="2">
[img]Url della tua immagine personalizzata” alt=”[/img]
</td>
</tr>
<tr><td width=”110″>Nome:</td>
<td width=”300″>’.$nome.’</td></tr>
<tr>
<td>Cognome:</td>
<td>’.$cognome.’</td></tr>
<tr>
<td>Telefono:</td>
<td>’.$telefono.’</td></tr>
<tr>
<td>E-mail:</td>
<td>’.$mittente.’</td></tr>
<tr>
<td>Richiesta:</td>
<td>’.$richiesta.’</td></tr>
</table></td></tr>
</table>
</body>
</html>’;
$headers = “From: $nome $cognome $telefono <$mittente>\n”;
$headers .= “Content-Type: text/html; charset=iso-8859-1\n”;
if(mail($_POST[’destinatario’], $oggetto, $sms, $headers)){
echo ‘&controllo=invio avvenuto con successo.’;
}
else{
echo ‘&controllo=errore: e-mail non inviata.’;
}
?>

non capisco cosa non va ma il messaggio che ottengo è sempre errore: e-mail non inviata.
Vi prego HELP!!! Ciao!