Issues

ZF-7291: Zend_Mail uses doublequotes in header charset which troubles several email clients

Issue Type: Bug Created: 2009-07-16T00:31:32.000+0000 Last Updated: 2009-07-31T18:27:02.000+0000 Status: Resolved Fix version(s): - 1.9.1 (11/Aug/09)

Reporter: Luke McLean (cyonluke) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mail

Related issues: Attachments:

Description

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

<pre class="highlight">
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):

<pre class="highlight">
$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

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts