ZF-9992: Allow Zend_Log_Writer_Mail to specify a transport

Issue Type: Patch Created: 2010-06-15T14:13:04.000+0000 Last Updated: 2012-11-20T21:37:22.000+0000 Status: Open Fix version(s): Reporter: Juan Pablo Civile (champo) Assignee: None Tags: - Zend_Log

  • Zend_Mail

Related issues: Attachments: - patch-writer-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.


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.