I'm currently working on an application that requires an email to be sent to users whenever they complete an action on the page. Currently, im running a php script as a cgi within a system call, the script includes the template that i want sent out pipes the output into a file, then php opens the file, loads into a variable and emails the value of the variable as the body of the message. There has got to be a better way to do this. I play on selling the application to be installed on another company's server and I can' depend on their sys admin to allow php's to run as a cgi, and i can't just include the template in non-system called php without it outputting the browser, so I was hoping for a way to load the output of an include into a variable. I've attempted to play with the eval function hoping that $var = eval(include($file)); would work, but that also outputs to the browser. Does anyone know of a way to load the output of an include into a variable, or maybe just a way around this problem without putting additional limitations on the sys admin. thank you for your help!