ZF-9992: Allow Zend_Log_Writer_Mail to specify a transport
Description
Added a 3rd param to the Zend_Log_Writer_Mail constructor to optionally accept a Zend_Mail_Transport_Abstract instance to use as transport when sending the mail.
Added a 3rd param to the Zend_Log_Writer_Mail constructor to optionally accept a Zend_Mail_Transport_Abstract instance to use as transport when sending the mail.
Comments
Posted by Juan Pablo Civile (champo) on 2010-06-15T14:13:52.000+0000
Propossed patch.
Posted by Juan Pablo Civile (champo) on 2010-06-15T15:02:17.000+0000
This patch was born out of the necessity of having more than one mail log writer with different mailing criteria. Without setting different transport for each of them, an error would occur when PHP closed some of the resources after sending the mails from the first writer, throwing an exception when the second writer attempted to send an email.