I'm sending an e-mail based on the e-mail entered into a form. The content of the e-mail is based on a query. All the elements of the content (including valid data) can be echoed successfully on the page, but do not appear in the e-mail. The e-mail sends successfully.
Any suggestions?
Here's the code:
}
else
{
// Check for blank entries
if ($sendtoName=="" or $sendtoEmail=="") {
error("One or more required fields were left blank.\\n".
"Please fill them in and try again.");
}
// Email story
$message = "
$Headline
By: $Author
$Content
";
$sendToEmail = mysql_escape_string($_POST['sendToEmail']);
mail($sendtoEmail,"News from The-Fitzgeralds.net",
$message, "From:".$FromName." (".$FromEmail.")");
}