Well, as far as I am aware, you can't. There are apparently tricks, for which I have added some links below. The question is why you would want to do this? To my mind you would be better off writing the data out to a file - and have the full functionality of a file - and attach that to an email.