Jump to content


This topic is now archived and is closed to further replies.


email php page

Recommended Posts

I have a shopping cart application that creates an order from the cart.  When the user 'confirms', the order header record (one) and order detail records (many) are created. A 'printer friendly' page is generated for the user to print a copy of the order.  I would like the ability to email this page.  In my past programming world I could print the page to a text file.  Then I could use something like the php mail function mail($to, $subject, $message); where $message is the text file.  Is it possible to email a page under the circumstances I describe?  Is there a PHP command to print to a file instead of print to printer? Or is there some simple way to do this?

del mar data systems

Share this post

Link to post
Share on other sites
do you use a database or files?

post your current code that generates the printer page.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.