How to attach a pdf generated on the fly to an email

Hi,

I'm using rfpdf to generate pdf files in a modificated redmine application. It's work when I generate pdf to the browser.

But I want to send email with generated pdf (if possible without saving in a file).

Any idea how to do that ?

Thanks Arnaud