-- Thanks for any help that you can provide.
I am trying to use the mail() function to email a generated html receipt that I am creating. I currently create the html like this:
function showPage() {
global some variables
require(finalpage.html);
}
This allows me to work on the php and the web designers to work on the image of the site. Inside finalpage.html I have several function calls to produce the dynamic content. This works great! My problem is that I want to take the same output that I am generating in the showPage() function and direct it into the mail() function. I can not figure out how I could set the require() call to send it's output into a variable. Nor can I write the output to a file and get the session variables to be written. My only thoughts are to call showpage() again and direct the output into a system call that will print the data into a sendmail command line email. Does anyone else have any ideas on how I could do this? I have no idea how to redirect the output of a require() or include() into a system call. Any help would be greatly appreciated.
Thanks!
wade