$SendFrom = "Form Feedback <feedback@yourdomain.com>";
$SendTo = "feedback@yourdomain.com";
$SubjectLine = "Feedback Submission";
$ThanksURL = "thanks.html"; //confirmation page
foreach ($_POST as $Field=>$Value){
if(!empty($Value)){
$MsgBody .= "$Field: $Value\n";
$MsgBody .= "\n" . @gethostbyaddr($_SERVER["REMOTE_ADDR"]) . "\n" .
$_SERVER["HTTP_USER_AGENT"];
}
}
$MsgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES); //make safe
mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
header("Location: $http://www.yourdomain.org");
also, I see that you are using a lot of capital letters in your variable names.. word of caution.. variable names are case sensitive.. so $Variable does not equal $variable..
I normally always use lower case characters in my variables..