Issues

ZF-8527: Augment Zend_Mail recipient functions to take optional arrays

Issue Type: Improvement Created: 2009-12-11T14:11:25.000+0000 Last Updated: 2009-12-14T13:56:23.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Eli White (eliw) Assignee: Eli White (eliw) Tags: - Zend_Mail

Related issues: - ZF-2219

Attachments:

Description

The Zend_Mail recipient functions: addTo(), addBcc(), addCc() - each only take a single email address. Augmenting them to accept an array optionally, and automatically handle the difference between being given a single entry, or an array, will make the functions much more flexible and match how many programmers will want to use them.

Comments

Posted by Eli White (eliw) on 2009-12-11T14:28:21.000+0000

Fix committed, arrays now can be optionally passed in.

Posted by Satoru Yoshida (satoruyoshida) on 2009-12-12T05:17:23.000+0000

Hello, Eli Sadly, I do not know the process, is this based on a conclusion argued in #zftalk.dev or Mailing List?

Posted by Eli White (eliw) on 2009-12-14T08:22:26.000+0000

This was based around me complaining to Matthew about lots of things, grin, including this specific point, when I was writing some code that needed to add multiple emails, that I already had stored in an array.

And most systems would have allowed for some 'bulk add' type functionality, and ZF didn't.

Matthew's response was telling me the typical OSS response of: "So code it"

And so I did.

Posted by Matthew Weier O'Phinney (matthew) on 2009-12-14T08:33:00.000+0000

Satoru -- I've actually heard the request a couple of times, and since Eli was willing to code it, it made sense. He ran the design ideas by me first, so I was aware of them.

Posted by Satoru Yoshida (satoruyoshida) on 2009-12-14T13:56:22.000+0000

Thank You for quick responce, Eli and Matthew.

I feel relieved. :-) Because I can understand it as a result of requests and agreement by plural people.

Thank you for function improvement and addition of unittest ;-)

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts