ZF-7291: Zend_Mail uses doublequotes in header charset which troubles several email clients
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 =).
Comments
Posted by Satoru Yoshida (satoruyoshida) on 2009-07-30T19:31:23.000+0000
Solved in SVN r17319 in trunk It will be released at 1.9.1
Posted by Satoru Yoshida (satoruyoshida) on 2009-07-31T18:26:52.000+0000
copy from trunk to 1.9 branch at SVN r17334