Mail()

Hi,

I have data in a function that I want to send out via mail()

The problem is that the info in the function is using

echo ‘bla’;

to display the info to screen.

But to send email its normally formated like…

$body = ‘bla’;

Can i put the echo data into a variable some how so I can use the same function to show on page and send as email?

Thanks

Says it all: http://php.net/manual/en/book.outcontrol.php