QUOTE(morcomm @ 30 May, 2008 - 03:42 AM)

Where are the email headers? I know this sounds like a stupid question, but is this a file somewhere in my site?
Using joeyadms's code you are creating the mail header on the fly, & then sending it as an argument to mail().
CODE
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$body = $_POST['body'];
if ($name != "" AND $email != "" AND $body != "") {
//PUT YOUE EMAIL ADDRESS -----
$sendto = "morcomm@jgi.co.za";
//PUT YOUR EMAIL ADDRESS -----
$subject = "Email from site!";
$message = "This is a message from your site
From: $name
Email: $email
Message: $body";
$fromEmail = 'noreply@mysite.com';
$headers = "From: $fromEmail";
// send the mail
mail("$sendto", "$subject", "$message",$headers);
echo "Your message was sent";
}
?><form method="post" name="mailform" action="<?=$_SERVER['PHP_SELF'] ?>">
<table width="200" border="0" cellspacing="0">
<tr>
<td width="62">Name:</td>
<td width="134">
<input name="name" type="text" id="name">
</td>
</tr>
<tr>
<td>Email:</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td valign="top">Message:</td>
<td><textarea name="body" cols="45" rows="10"></textarea></td>
</tr>
</table>
<br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</form>
You had $header in the mail function. & your variable just said email, it did not reference the email variable.