Ladies and gents,

What is the ZF way to get a Zend_Mail instance all set up and ready to go on
demand? The examples in the docs are hard-coded.  It seems like a good
candidate for a config file, like this, or similar:


http://mysqltalk.wordpress.com/2009/05/16/how-to-pull-your-mail-configuration-from-application-ini-for-zend-framework-1-8-0/

But there's the disadvantage, I think, that in your config you will end up
mixing resource.* style config directives with others, potentially confusing
people later to install and set up your application. Although -- who cares?
Maybe I am being a bit anal-retentive about that.

There is also this, which is elegant


http://www.codewithstyle.eu/2009/11/18/configurare-zend_mail-usando-application-ini/

but I think there's the disadvantage that your Zend_Mail resource would get
instantiated at bootstrap time whether you need it or not -- true? -- and
not every controller/action in my app needs to send email.

Finally, I suppose you could set the email configuration data in its own
separate config file.

Any thoughts?


-- 
Support real health care reform:
http://phimg.org/

--
David Mintz
http://davidmintz.org/

Reply via email to