Jump to content

email php page


delmardata

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?

Dennis
del mar data systems
dennis@windowareaccounting.net
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.