ZF-1950: Correct method of encodeHeader "From" for Multibyte name senders

Issue Type: Improvement Created: 2007-09-14T20:49:37.000+0000 Last Updated: 2012-03-26T08:45:36.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: old of Satoru Yoshida ( Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mail

Related issues: - ZF-1688



I find following sentence in line 515 in Zend/Mail.php.

$this->_storeHeader('From', $this->_encodeHeader('"'.$name.'"').' <'.$email.'>', true);

But it causes error if Sender name contains Multibyte characters and Receiver uses OutlookExpress. For example , I look in the $this , =?ISO-2022-JP?Q?"=1B$BAw=3F.<T=1B(B"?=. I think it must be "=?ISO-2022-JP?Q?=1B$BAw=3F.<T=1B(B?=".

I propose to modify the line as next. $this->_storeHeader('From', '"'.$this->_encodeHeader($name).'"<'.$email.'>', true);

I hope it will useful.


Posted by Thomas Weidner (thomas) on 2007-09-15T15:03:13.000+0000

Assigned to Nico

Posted by Nico Edtinger (nico) on 2007-09-18T16:07:40.000+0000

Postponed because encoding will (most likely) be changed to iconv_mime_encode(), which should also fix this issue.

Posted by old of Satoru Yoshida ( on 2008-11-07T08:24:02.000+0000

Solved in SVN r12370

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

Changing issues in preparation for the 1.7.0 release.

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.