I am using a form to collect iformation from clients and sending to a PHP file that checks the input to make sure it is usable. At the end of that file after it has been determined that everything is okay i want to send a copy of that information to my email box in table form. For some reason i can't get get my message to recognize my variables or arrays. Here is the code that i got off one of these post sites and have modified to fit my application:
/ recipients /
$to = "XXXX@barlowshomes.com";
/ subject /
$subject = "Please run this!";
/ message /
$message = "<TABLE WIDTH='50%' BORDER='3' CELLSPACING='3' CELLPADDING='3'>";
$message .="<TR><TD ALIGN='RIGHT'>$FIRSTNAME</TD></TR>\n";
$message .="</TABLE>";
/ To send HTML mail, you can set the Content-type header. /
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
/ additional headers /
$headers .= "From:CMA FORM <jake@barlowshomes.com>\n";
/ and now mail it /
mail($to, $subject, $message, $headers);
?>
And this will send an email to my box with everything working except the body. The form is there but contains no information, and the "print_r($_post)" command works fine if don't put it into the message body.