Issue Bug Closed

#19333t3lib_htmlmail: excess newlienes in plain-text headers

Michael Cannon 09/15/08, 19:33 updated 05/08/13, 08:38

Description

Plain text emails sent via t3lib_htmlmail have an excess blank line after the header that causes some third-party mail processing tools to fail because there’s more than one newline between mail headers and message body start.

Easy fix; after adding the headers in t3lib/class.t3lib_htmlmail.php line 545, add below it the following.

—
$this->headers = preg_replace(“#\n$#”, ‘’, $this->headers);
—

(issue imported from #M9352)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.