Zend Framework

Zend_Mail Blank line above all emails sent

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Mail
  • Labels:
    None

Description

When Zend_Mail sends an email, there is one too many blank lines between the headers and the body. Most email clients seem to ignore this, but Gmail shows the blank line.

As far as I can tell, Zend_Mail_Transport_Abstract::_prepareHeaders() always puts a new line after the headers, then Zend_Mail_Transport_Sendmail::_sendMail() passes this straight to the mail() function. Putting trim() in either function solves it for me, but I have not tested other transports.

Activity

Hide
Benjamin Eberlei added a comment -

Confirmed on outlook 2007, it also shows the additional blank line.

Show
Benjamin Eberlei added a comment - Confirmed on outlook 2007, it also shows the additional blank line.
Hide
Benjamin Eberlei added a comment -

I have checked this issue and it appears to be a Sendmail Transport specific issue.

I will add a patch and unittest and apply that tonight when i have my SVN account credentials with me

Show
Benjamin Eberlei added a comment - I have checked this issue and it appears to be a Sendmail Transport specific issue. I will add a patch and unittest and apply that tonight when i have my SVN account credentials with me
Hide
Benjamin Eberlei added a comment -

Fixed in trunk and merged back into 1.9 release branch

Show
Benjamin Eberlei added a comment - Fixed in trunk and merged back into 1.9 release branch

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: