if ((isset($_POST["posta_from"])) && (isset($_POST["posta_to"])) && (isset($_POST["posta_subject"])) && (isset($_POST["posta_text"])))
{
$headers = "";
$headers .= "From: Name<" . $_POST["posta_from"] . ">\n";
$headers .= "X-Sender: <" . $_POST["posta_from"] . ">\n";
$headers .= "X-Mailer: PHP\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <" . $_POST["posta_from"] . ">\n";
//Uncomment this to send html format
//$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
echo $_POST["posta_to"] . $_POST["posta_subject"] . "____" . $_POST["posta_text"] . "____" . $headers;
if (!mail($_POST["posta_to"], $_POST["posta_subject"], $_POST["posta_text"], $headers))
{
echo "preslo ti to more ... :o)";
}
else
{
echo "mail()? ani boovi ... :o(";
}
}
?>