Hi. I have recovered e.g. $message from an html form. What is the php code to e-mail it to myself? Thanks, Steve.
On Monday 29 April 2002 6:08 pm, steve wrote:
I have recovered e.g. $message from an html form. What is the php code to e-mail it to myself?
$to="me@email.address"; $subject="Email from me"; mail ($to,$subject,$message); You can also have an optional fourth argument, for extra headers, eg $headers="From: My website form <me@email.address>"; Kevin
Thanks Kevin. It really does make you wonder how we coped with those awful perl scripts sitting on servers not too long back! Cheers, Steve. On Tuesday 30 April 2002 01:06, you wrote:
On Monday 29 April 2002 6:08 pm, steve wrote:
I have recovered e.g. $message from an html form. What is the php code to e-mail it to myself?
$to="me@email.address"; $subject="Email from me"; mail ($to,$subject,$message);
You can also have an optional fourth argument, for extra headers, eg $headers="From: My website form <me@email.address>";
Kevin
participants (2)
-
Kevin Donnelly
-
steve