Zend Framework

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

Details

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

Description

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('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:

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

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

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r15933

Show
Satoru Yoshida added a comment - Solved in SVN r15933

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: