Quote:
Originally Posted by Flep
Hi maruti,
let me see the PHP you are using please.
|
Hi flep, the php code is;
the same code
$to = "info@flepstudio.org";
$subject = ($_POST['titolo']);
$message = ($_POST['messaggio']);
$message .= "\n\n---------------------------\n";
$message .= "E-mail inviata da: " . $_POST['nome'] . " <" . $_POST['email'] . ">\n";
$headers = "From: " . $_POST['nome'] . " <" . $_POST['email'] . ">\n";
if(@mail($to, $subject, $message, $headers))
{
echo "answer=ok";
}
else
{
echo "answer=error";
}
?>
thanks,
Maruti Kumar