ZF-6895: Zend_Mail should have hooks for init() and possibly _preSend()

Issue Type: Improvement Created: 2009-06-03T08:06:52.000+0000 Last Updated: 2009-06-12T14:32:08.000+0000 Status: Resolved Fix version(s): Reporter: Mark (lightflowmark) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Mail

Related issues: Attachments:


It would be helpful to have hooks in Zend_Mail such that child classes only need to implement init() (called from parent::__construct()) and perhaps _preSend() (called as the first line of parent::send())

This would allow users to do some trivial setup, for instance adding a default BCC to every outgoing mail, without worrying about overriding core functions.


Posted by Benjamin Eberlei (beberlei) on 2009-06-12T14:32:08.000+0000

This is not necessary. If you extend Zend_Mail anyways its (almost) as simple to overwrite those methods. Since Zend_Mail is a utility class that is easily extendable (in contrast to classes which are deeply rooted in the MVC process) init and pre sent hooks are not necessary.

Have you found an issue?

See the Overview section for more details.


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

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