Alright, so:
<?php
// recipient
$to = 'xxxxxxxxxxxxx' ;
// subject
$subject = 'Ask the Marauders';
$name = $_POST['yourname'];
$email = $_POST['email'];
$for = $_POST['for'];
$txt = $_REQUEST['txt'];
$message = "
Name: $name \n\n
Email: $email \n\n
For: $for \n\n
Txt: $txt \n\n
";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "To: Infamous Marauders <xxxxxxxxxxxxxx>" . "\r\n";
$headers .= "From: $name <$email>" . "\r\n";
mail($to, $subject, $message, $headers);
header("Location: thankyou.htm");
?>
This is a mail function that is supposed to allow users to type in a message that I can read and reply to, including their name and email address so that I can do so. However, when it sends, all I see are the headers. No message at all. I don't know if this is a simple n00b error, or if the code is messed up. I simply don't know. I was trying to get someone to help me with this, and after getting to this set of code, they left me high and dry. Admittedly I've struggled to learn PHP for two years. (Key word: struggled.) I'm not very good at it. Anybody here want to give it a go?