ZF-1950: Correct method of encodeHeader "From" for Multibyte name senders
Description
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.
Comments
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 (yoshida@zend.co.jp) 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.