Issue Type: New Feature Created: 2008-11-15T13:42:26.000+0000 Last Updated: 2010-12-06T02:22:53.000+0000 Status: Resolved Fix version(s): - Next Major Release ()
Reporter: Wojciech Naruniec (wojciech) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Mail
Related issues: - ZF-8436
It would be great to have ability to configure Zend_Mail from config file similar to Zend_Db or Zend_Cache components Sample use case:
<pre class="highlight"> [production] mail.transport = smtp mail.host = 127.0.0.1 mail.config.name = localhost mail.config.auth.type = login mail.config.auth.userame = somelogin mail.config.auth.password = somepass [development : production] mail.transport = sendmail mail.parameters = '-f someparameters'
<pre class="highlight"> $config = new Zend_Config_Ini('config.ini', 'production'); $mt = Zend_Mail::factory($config->mail); Zend_Mail::setDefaultTransport($mt);
Posted by Satoru Yoshida (satoruyoshida) on 2010-01-19T05:34:06.000+0000
MEMO: parameter name could be took into account from ZF-8436.
Posted by Satoru Yoshida (satoruyoshida) on 2010-06-09T00:19:03.000+0000
Sorry, I have been inactive since last April.
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-16T14:48:05.000+0000
Ramon, if you implement this; please do so by implementing a setOptions() method, which gets called if Zend_Mail::__construct()'s first argument is an array or instance of zend_config. If you're uncomfortable doing this or unsure how, please just reassign. I'll then do it (but maybe only with zf2).
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T17:04:02.000+0000
Hi Dolf Thanks by your feedback. Sorry by delay in response ;). I want to do this improvement to 1.11.
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-12-06T02:22:35.000+0000
Will be or has been implemented for ZF2
Have you found an issue?
See the Overview section for more details.