title: PHP: Add attachments to emails "on the fly"?
body: <p>I just got PHP's mail function to work properly in my test environment. </p>
  
  <p>I have a PHP app that outputs a number of strings. It would be really nice to convert these strings to attachments (<code>*.TXT</code> -files) in an email, without first storing them on disk and having to read them back. <strong>Would this be possible in PHP?</strong></p>