Ok I am trying put a simple timestamp at the top of a email that my php script is sending. What am I doing wrong???
$nowstamp = date("H:i:s");
$fp = fopen('php://stdin','r');
$data = "";
while(!feof($fp)) {
$data .= fgets($fp,4096);
}
fclose($fp);
# Send the e-mail.
$subject = $emailsubject;
$recipient = $emailrecip;
$body_of_email = $nowstamp;
$body_of_email = . trim($data);
$header = 'From: "' . $emailfromname . '" <' . $emailfromaddr . '>';
$header .= "\n";
$header .= "X-Priority: 1";
$header .= "\n";
mail ($recipient, $subject, $body_of_email, $header);
echo ("E-mail sent.");
?>
$nowstamp = date("H:i:s");
$fp = fopen('php://stdin','r');
$data = "";
while(!feof($fp)) {
$data .= fgets($fp,4096);
}
fclose($fp);
# Send the e-mail.
$subject = $emailsubject;
$recipient = $emailrecip;
$body_of_email = $nowstamp;
$body_of_email = . trim($data);
$header = 'From: "' . $emailfromname . '" <' . $emailfromaddr . '>';
$header .= "\n";
$header .= "X-Priority: 1";
$header .= "\n";
mail ($recipient, $subject, $body_of_email, $header);
echo ("E-mail sent.");
?>