Script - 2nd set of eyes

webstar

New Member
Joined
Apr 7, 2007
Messages
16
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.");

?>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Ummm, you know this is an Excel forum right?

If my wife was around I'd ask her for you, but in the meantime you might want to check out <CITE>www.phpfreaks.com.</CITE>
<CITE></CITE>
<CITE></CITE>
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top