Codice PHP:
<?php // il tag di apertura come ti avevo segnalato
$to = $_REQUEST['mioindirizzo']; //non possono esserci spazi nelle variabili e le parentesi non servono
$soggetto = $_REQUEST['titolo']; // le parentesi non servono
$messaggio = $_REQUEST['messaggio'];
$messaggio .= "\r\n\r\n------------------------\r\n"; //usa \r\n
$messaggio .= "Questa mail è stata spedita da: " . $_REQUEST['nome'] . "<" . $_REQUEST['email'] . ">\r\n";
$testata = "From: " . $_REQUEST['nome'] . "<" . $_REQUEST['email'] . ">\r\n"; // non puoi utilizzare "Da:" nell'indicare un header!!!
if(@mail($to,$soggetto,$messaggio,$testata))
{
echo "stato=ok";
}
else
{
echo"stato=error";
}
?>