title: Attaching a base64_encoded string in emails - Codeigniter
body: <p>I've spent the last day creating a script that will create a PDF-receipt when a customer buys something from our site. When the PDF is created, I save the output to a variable using <a href="http://php.net/manual/en/function.ob-get-clean.php" rel="nofollow noreferrer">ob_get_clean()</a></p>
  
  <p>I then make this variable into a base64_encoded string. When I'm done doing that, I save the string to a database. Now, what I want to do after that is get the string and in some way save it as an attachment to an email, so that the user can download it as a file. I've tried Google, but I didn't find anything helpful really.</p>
  
  <p>I found this thread, but as far as I can see in the Codeigniter email-library (I might have missed it), the requested function wasn't implemented. Here is the request though, <a href="http://codeigniter.com/forums/viewthread/89686/#452473" rel="nofollow noreferrer">Email class: add attachment from string</a></p>