Thank you very much redhead for your reply.
hesre is my new php script:
<?
$name = stripslashes($_POST['name']);
$from = stripslashes($_POST['from']);
$to = stripslashes($_POST['to']);
$subject = stripslashes($_POST['subject']);
$message = stripslashes($_POST['message']);
$headers .= "From: \"".$name."\" <"$from">\r";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
if(mail($to,$subject,$message,$headers)){;
echo "Mail has been sent.";
}
else{
echo "Mail has not been sent.";
}
?>
It's working but with a little problem.The sender address it's shown strange.
And one more question.Can I change the order of the variables when it's sending mail? Ex. instead of if(mail($to,$subject,$message,$headers) to be like this if(mail($headers ,$to, $subject,$message) ... i've tried this method and it seems that the mail was sent successfully but it didn't arrived in mailbox

.