Bug #16777
closedt3lib_htmlmail truncates last character in html mails
0%
Description
This bug may only occur on windows, I haven't tested it on Linux.
I use mySQL 5 and php 5.1.6
The issue occurs on every HTML email generated using class.t3lib_htmlmail, from any plugin or even using the basic form edit of typo3 :
When an HTML part is specified for the email, the last character is being eaten. Thus when the data is presented into a table, the last character of the tag </table> that is located at then end of the mail disapears and the email received displays : "</table" at the end of the email.
Under windows, create a form object in any page, add one or 2 fields and enable the HTML mode.
Fill the form in frontend and check out your email client for the received form : "</table" should appear at the end of the email you have received.
This bug is easy to fix. The function setHTML at line 781 of the class should be modified so a .chr(10) is appended at the end of the HTML, preventing the last character to be eaten.
Here is the code of the function fixed :
function setHtml ($content) {
// Sets the HTML-part. No processing done.
$this->theParts["html"]["content"] = $content.chr(10);
}
(issue imported from #M4634)