I'm currently using PHP's mail() function to email the HTML Body of another PHP file using concatenation.
This is currently working fine, however, I would prefer the script to simply get the parsed HTML Body rather than using the concatenation method.
I've read a few incomplete forum posts regarding using fopen() and fread() but had no luck myself. Any output I have got to work has not parsed the PHP within the file.
Is there a function available that can do this?