ZF-2219: addBcc() lacks 'name' parameter

Issue Type: Improvement Created: 2007-11-20T07:23:52.000+0000 Last Updated: 2010-12-02T19:21:28.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: Daan Broekhof (joror) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Mail

Related issues: - ZF-8527



The addBcc() function does not have the second parameter 'name' , while addCc() and addTo() do have it . Instead the name is internally set to ''.

For consistency & usablities sake addBcc() should also get the extra name parameter.


Posted by Nico Edtinger (nico) on 2007-12-15T10:01:27.000+0000

To and CC have corresponding headers, while BCC doesn't. BCC is only used for the envelope and the name wouldn't be used anyway. If you want to, you could still call BCC with an extra parameter, as it's ignored by PHP.

Posted by Daan Broekhof (joror) on 2007-12-15T11:12:53.000+0000

Ah I see what you mean when it just purely concerns sending the mail to the recipients..

But when you want to store the mail somewhere, say in an IMAP 'sent' folder, or display it, say in a 'preview' area, that BCC 'name' data is lost - data which is a valid part of the BCC header.

Would it not be better to let Zend_Mail retain the complete information, and leave it up to the 'handlers' of the mail object to use only the data which they need?

Posted by Nico Edtinger (nico) on 2008-01-03T16:20:50.000+0000

I'll see. That would make sense when we merge the mail messages classes or add some better support to copy a sent message to imap or maildir. Therefore this issue is now postponed.

Posted by Satoru Yoshida (satoruyoshida) on 2010-06-09T00:25:50.000+0000

Sorry, I have been inactive since last April.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-12-02T19:21:27.000+0000

Resolved for ZF2

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.