??t it to work.
here's the code for reference to those trying to do this:
contact.php:
<html>
<head>
</head>
<body>
<form action="mail.php" method="POST">
in put fields, variables, design, whatever
</form>
</body>
</html>
mail.php:
<?php
$message="Name: $name\n\n"."E-Mail: $email\n\n"."Message: $message";
mail("$contact","$subject","$message","From: $email\r\nReply-to:$email");
header("Location: http://www.yourdomain.net/dir/contact_sent.html");
?>
after mail.php sends the mail, it will redirect to the contact_sent.html page. in the mail.php there is no other code except the php, no html or anything. this is very basic, so if you want required fields or email validation ... well don't ask me, i'm just learning php 🙂