title: Render action to HTML email in Zend Framework
body: <p>I have an action which is rendering some content via a layout.</p>
  
  <p>I actually want to send this output in an email. What is the best way to achieve this in the Zend Framework?</p>
  
  <p>I know I need to use the <code>Zend_Mail</code> component to send the email, but I'm unclear about how to attach the output of my action to <code>Zend_Mail</code>.</p>
  
  <p>I've done some reading on the ContextSwitch action helper, and I think that might be appropriate, but I'm still not convinced.</p>
  
  <p>I'm still new to Zend Framework. I'm used to using techniques like output buffering to capture output, which I don't think is the correct way to do this in Zend.</p>