Zend Framework

Zend_Mail uses doublequotes in header charset which troubles several email clients

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.1
  • Component/s: Zend_Mail
  • Labels:
    None

Description

As already reported in issue ZF-6219, the character set in the Content-type header of MIME message part should not be quoted.

Content-Type: text/html; charset="utf-8"

The solution that was proposed there was to remove the quotes in Zend/Mime/Part.php which was done in the next release i think. The problem now is that the mentioned file is not the only one that quotes the mail headers that way. Another file that always set my headers wrong when I was setting an attachment:

Mail/Transport/Abstract.php (line 143):

$this->_headers['Content-Type'] = array(
      $type . '; charset="' . $this->_mail->getCharset() . '";'
        . $this->EOL
                . " " . 'boundary="' . $boundary . '"'
        );

Removing the doublequotes on the charset= part lets even outlook 2003 read my attachment properly =).

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r17319 in trunk It will be released at 1.9.1

Show
Satoru Yoshida added a comment - Solved in SVN r17319 in trunk It will be released at 1.9.1
Hide
Satoru Yoshida added a comment -

copy from trunk to 1.9 branch at SVN r17334

Show
Satoru Yoshida added a comment - copy from trunk to 1.9 branch at SVN r17334

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: