Hi Brian,
Thanks for the offer of help.
My question is, how do I put " All The Stuff Here " into $mail_body ... other than typing it all in.
I can't really do:
$mail_body="<htm><body>all the text here</body>"; as the output page is not 'fixed' and depending on the user, will be different depending on the output from the sql query.
There must be some way I can 'capture' the output page and then declare it in $mail_body.
I'm a PHP bozo, so bear with me ... what I was thinking I could do was have the entire page as a function or something and that could be declared as an include into $mail_body. ie $mail_body="include output.php'; OR $mail_body=somefunction();
I know my syntax is all wrong in the above and all that will come out in the e-mail is include output.php or somefunction(). That's my real problem ... I simply don't know what I should be doing and haven't the slightest idea where to even start looking in the manual.
I hope my explanation makes sense and there is a solution to my question.
Giovanni