Re: stumped on mailing a complete page
| From: | Lewis Bergman | Date: | Sun, 04 Mar 2001 01:40:51 +0000 |
| Subject: | Re: stumped on mailing a complete page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42480@lists.php.net to get a copy of this message | ||
> This question may have been asked a million times, but I have had no
> luck searching for a difinitive answer.
>
> I want to send a confirmation email upon receiving an order, and would
> like to send the page that I display on the browser to the user.
>
> I can not figure out how to send a page, like the links that let you
> mail a page to a friend on some sites. Any help would be much
> appreciated.
>
> Thanks,
> Brett
Lets be clear. Do you want to send the page or just the important values
from the page?
One way I do this is like this:
$successPage =<<<EOF
<center><h1>SUCCESS!!</h1></center>
lots of
stuff
here.
A whole html page.
EOF
then you mail it like this
mail('order.money.com', $headers, $successPage);
or you just loop through all the post vars and build a body from that and
mail it.