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


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

Example to reproduce the error:

  $mail = new Zend_Mail();
  $mail->setFrom('', 'Tester');
  $mail->setBodyText('Test Test äöü ','ISO-8859-1','quoted-printable');
  $transp = new Zend_Mail_Transport_Smtp('');

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:

else $this->_headers['MIME-Version'] = array('1.0');

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


Solved in SVN r15933