Issues

ZF-6944: Zend_Mail does not always set the mandatory MIME-Version mail-header field

Issue Type: Bug Created: 2009-06-07T08:44:36.000+0000 Last Updated: 2011-08-04T01:51:34.000+0000 Status: Resolved Fix version(s): - 1.8.3 (09/Jun/09)

Reporter: Andreas F. (zokaf) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mail

Related issues: Attachments:

Description

When sending Mime-Email the mandatory header file MIME-Version is not always set.

Example to reproduce the error:

<pre class="highlight">
  $mail = new Zend_Mail();
  $mail->setFrom('xxxx@xxxx.de', 'Tester');
  $mail->addTo('xxxx@xxxx.de');
  $mail->setSubject('testmail');
  $mail->setBodyText('Test Test äöü ','ISO-8859-1','quoted-printable');
  $transp = new Zend_Mail_Transport_Smtp('xxxx.xxx.de');
  $mail->send($transp);

Remarks: In Body text there are german umlauts (Real-names are replaced by xx)

When looking at the generated Mail, it is lacking the header field:

MIME-Version: 1.0

The error could be corrected in File Zend/Mail/Transport/Abstract.php in function _getHeaders($boundary) with adding the following code:

<pre class="highlight">
else $this->_headers['MIME-Version'] = array('1.0');

just befor the return $this->_headers; at the end of the function.

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2009-06-07T19:06:38.000+0000

Solved in SVN r15933

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