Issues

ZF-4890: Improvement on addTo(), addCc(), addBcc() of Zend_Mail

Issue Type: Improvement Created: 2008-11-09T21:20:58.000+0000 Last Updated: 2011-08-03T14:11:06.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: old of Satoru Yoshida (yoshida@zend.co.jp) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mail

Related issues: Attachments:

Description

_addRecipientAndHeader() function that is called from addTo(), addCc() and addBcc() functions, should be improved as following.

  1. If $name is not used or the $name is same as $email, header is "To: $email".

  2. If $name is used and the $name is encoded, header is "To: $name <$email>".

  3. If $name is used and the $name is not encoded and not contains comma, header is "To: $name <$email>".

  4. If $name is used and the $name is not encoded and contains comma, header is "To: "$name" <$email>".

Cf. setFrom() function in ZF-2043.

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-11-09T21:26:35.000+0000

Solved in SVN r12485

Posted by Wil Sinclair (wil) on 2008-11-13T14:09:57.000+0000

Changing issues in preparation for the 1.7.0 release.

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