I can't get a php sent email to display the values of variables from the database. It shows the text stored in $message, but not the variables ($firstname, $lastname). I know the database grabbed the record, because I tried printing out the varibles to the page. Has anyone else had this problem? Here is a snipplet of the code:
$firstname = stripslashes($query_data["firstname"]);
$lastname = stripslashes($query_data["lastname"]);
$message = "Here is the contact info:\n";
$message .=$firstname.$lastname;
$mail_to = $mail_parts["mail_to"];
$mail_from = $mail_parts["mail_from"];
$mail_subject = "I have a tip for you.";
$mail_body = $message;