Ciao a tutti....ho un piccolo problema con l'invio di un FORM tramite Email.....di seguito è riportato il codice che utilizzo...(file php) ma mi dice la funzione mail nn è riconosciuta.....consigli??? Grazie a tutti anticipatamente!!!
<html>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] != 'POST'){
$me=$_SERVER['PHP_SELF'];
?>
<form name="form1" method="post"
action="<?php echo $me;?>">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td>Nome:</td>
<td><input type="text" name="Nome"></td>
</tr>
<tr>
<td>Oggetto</td>
<td><input type="text" name="Oggetto"></td>
</tr>
<tr>
<td valign="top">Messaggio:</td>
<td><textarea name="Msg"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit"
value="Send"></td>
</tr>
</table>
</form>
<?php
} else {
error_reporting(0);
$destinatario='mio_indirizzo@ciao.it';
$ogg=stripslashes($_POST['Oggetto']);
$da=stripslashes($_POST['Nome']);
$msg="Messaggio da: $da\n\n".stripslashes($_POST['Msg']);
if (mail($destinatario,$ogg,$msg))
echo nl2br("<b>Messaggio inviato:</b>
A: $destinatario
Oggetto: $ogg
Messaggio:
$msg");
else
echo "Errore";
}
?>
</body>
</html>
PS:ho letto anke altri forum sull'argomento in questo sito...ed ho provato le differenti proporste....ma l'errore è sempre lo stesso!!!