Zend Framework

Correct method of encodeHeader "From" for Multibyte name senders

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.7.0
  • Component/s: Zend_Mail
  • Labels:
    None

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.

Issue Links

Activity

Hide
Thomas Weidner added a comment -

Assigned to Nico

Show
Thomas Weidner added a comment - Assigned to Nico
Hide
Nico Edtinger added a comment -

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

Show
Nico Edtinger added a comment - Postponed because encoding will (most likely) be changed to iconv_mime_encode(), which should also fix this issue.
Hide
Satoru Yoshida added a comment -

Solved in SVN r12370

Show
Satoru Yoshida added a comment - Solved in SVN r12370
Hide
Wil Sinclair added a comment -

Changing issues in preparation for the 1.7.0 release.

Show
Wil Sinclair added a comment - Changing issues in preparation for the 1.7.0 release.

People

Vote (5)
Watch (7)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
10m
Time Spent - 10 minutes