Issues

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.

Comments

Propossed patch.

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.