include date in email

O

old.karmakiller

Guest
Hi can someone help...I have a done a callback request form in PHP and I want to include the date in the email that the form sends...does any one know how to do it, or even better give me the source code....THANKS
 
T

Testin da Cable

Guest
can't you just pull the system time into a variable and print that?

in perl that could be something like this:

$date = localtime(time);
print "$date\n"

at least...that works for me :)
 
O

old.karmakiller

Guest
reply

it needs to be php...if i do use the code you provided where would i put in my form???
 
T

Testin da Cable

Guest
well...I don't know PHP but I expect it would go something like this:

#beginning of the php code
...
here are some variables
$date = localtime(time);
...
here is some html
...
open(MAIL,"|$mailproggy")
print MAIL "to:$boss\n";
print MAIL "hello master, on $date we recieved an order from $user and did blablabla\n";
close(MAIL);
...
#code ends

'course you can prolly pull a lot from whatever form you are using too


good luck :)


[Edited by testin_da_cable on 29-03-01 at 12:18]
 

Users who are viewing this thread

Top Bottom