ZF-7799: Zend_Mail Blank line above all emails sent

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.

Comments

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

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 ;)

Fixed in trunk and merged back into 1.9 release branch