I use Zend_Mail
component in my application for sending mails via SMTP protocol.
And I want to persist my messages to files when I'm in development
environment(accordingly to application.ini).
How can I detect in my controller action whether it is development or production
/staging
environment?