Hello, Suppose I have a php file that output certain HTML given certain parameters. So I can call it likt http://localhost/myscript.php?foo=bar
I can include it from other page using include('myscript.php?foo=bar') But how can I instead capture the output of the include to variable and mail it, something like $msg = include('myscript.php?foo=bar") mail($to,$subject,$msg); Furthermore, if myscript.php generates image instead (eg. JPEG), which I usually call using <IMG SRC=myscript.php?foo=bar>, can I 'save' the image in a variable, and then mail it as an attachment? I know that I have to use some mail class that will handle attachments, but that's is available somewhere in the net, or from PEAR I assume. So the problem only how to capture the dynamically generated image. Thanks for any help. Reuben D. Budiardja -- ------------------------------------------------- /"\ ASCII Ribbon Campaign against HTML \ / email and proprietary format X attachments. / \ ------------------------------------------------- Have you been used by Microsoft today? Choose your life. Choose freedom. Choose LINUX. ------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php