I have an action that passes some content through the layout.
I really want to send this output in an email. What is the best way to achieve this in the Zend Framework?
I know that I need to use the Zend_Mail component to send email, but I don’t understand how to attach the output of my action to Zend_Mail .
I read something in the ContextSwitch action helper, and I think this might be appropriate, but I'm still not sure.
I'm still new to the Zend Framework. I'm used to using methods such as output buffering to capture output, which I don't think is the right way to do this in Zend.
source share