php Code:
<?

$sysmail = "you@yourdomain.com";

if ($_POST['sendmessage'])
{
    if(!isset($_POST['message']))
    {
        $messages = "You're email needs to contain a message, dummy!!!<br>";
    }
    elseif(!preg_match("/^.*?@.*?$/", $_POST['email']))
    {
        $messages = "Stop trying to trick me and use a real email, or me and you will fall out!!<br>";
    }
    elseif(mail($sysmail, stripslashes(trim($_POST['subject'])), stripslashes(trim($_POST['message'])), "From: " . $_POST['email'] . "rn"))
    {
        $messages = "Thanks for your message someone will get back to you shortly.<br>";
    }
    else {
            $messages = "The programmer who wrote this isn't as clever as he thinks, and something has gone wrong.<br>";
         }
}
?>
<h2>Contact Form</h2>
<form action="" method="post">
<span style="color:#FF0000; font-weight:bold;"><?=$messages ?></span>
  <table width="50%" border="0">
    <tr>
      <td width="50%" valign="top"><div align="right"><strong>Your Email Address : </strong></div></td>
      <td width="50%" valign="top"><input type="ext" id="email" name="email" size="50"/></td>
    </tr>
    <tr>
      <td valign="top"><div align="right"><strong>Message Subject : </strong></div></td>
      <td valign="top"><input type="ext" id="subject" name="subject" size="50"/></td>
    </tr>
    <tr>
      <td valign="top"><div align="right"><strong>Your Message </strong></div></td>
      <td valign="top"><textarea name="message" cols="50" rows="10" id="message"></textarea></td>
    </tr>
    <tr>
      <td colspan="2" valign="top"><div align="center">
          <input type="submit" value="Send Message">
        </div></td>
    </tr>
  </table>
  <input type="hidden" name="sendmessage" value="1">
</form>
save is as php and <? inlcude("filename.php"); ?> in your page, or copy it to it's own html page, there are no headers on the page.....