Issues

ZF2-155: Message always includes empty CC header if no cc was specified

Issue Type: Bug Created: 2012-02-07T11:35:14.000+0000 Last Updated: 2012-06-11T13:26:53.000+0000 Status: Resolved Fix version(s): Reporter: Mario Dees (mariod) Assignee: Maks 3w (maks3w) Tags: - Zend\Mail

Related issues: Attachments:

Description

Sending a message that never was assigned a CC address, still will include CC header and show it as empty.

Comments

Posted by Mario Dees (mariod) on 2012-02-08T18:24:34.000+0000

It seems would happen because when SMTP::prepareRecipients does $message->cc() eventually the Message::getHeader function is called and it's setup if the queried header doesn't exist it creates it, and we would end up with the empty CC header despite no recipients ever being added to the header.

Posted by Maks 3w (maks3w) on 2012-06-11T13:26:53.000+0000

Fixed with https://github.com/zendframework/zf2/pull/1475

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