ZF-12445: Zend_Mail Header Bug for Linux Machines for ZF 2.0
I have noticed an issue when sending e-mails the headers show up in the e-mail itself. I looked at the EOL character used in the Zend\Mail\Headers class (constant EOL = \r\n) which is perfectly for Windows, but when sending an e-mail with this line break I get the following output in the actual email:
Reply-To: My Test Email email@example.com
From: John Doe firstname.lastname@example.org
When the constant is changed to \n ONLY then the output shows up normal (Just Hello). In other words this \r character is causing the headers to show up as plain text in the message body.
My suggestion is to used the PHP_EOL constant so it is automatically adjusted for each platform automatically.