Issue Type: Bug Created: 2010-09-29T09:18:45.000+0000 Last Updated: 2010-12-06T03:31:37.000+0000 Status: Resolved Fix version(s): - Next Major Release ()
Reporter: Richard Vidal (richardvidal) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Mail
Related issues: Attachments:
When an email is sent, ':' character is not allowed in the sender name as it is to represent a group (rfc2822).
<pre class="highlight"> $this->_mail = new Zend_Mail('UTF-8'); $this->_mail->setFrom("email@example.com", "John:Doe");
will produce this header:
bq.From: John:Doe firstname.lastname@example.org
And it is not correct.
I suggest to disallow ':' in _filterName
<pre class="highlight"> --- ZendFramework-1.10.8/library/Zend/Mail.php 2010-01-31 10:06:00.000000000 +0100 +++ ZendFramework-work/library/Zend/Mail.php 2010-09-29 17:31:07.556677100 +0200 @@ -1211,6 +1211,7 @@ $rule = array("\r" => '', "\n" => '', "\t" => '', + ':' => '', '"' => "'", '<' => '[', '>' => ']',
I got some really weird results without that patch when an user try to have a sender name with ':'. That is my first contribution to ZF and I hope it can help.
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-12-06T03:31:37.000+0000
This issue has been resolved in ZF2. Thank you for reporting.
Have you found an issue?
See the Overview section for more details.