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.