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)
Updated by Michael Fritz almost 18 years ago
same problem with hrefs,
<a href="http://www.xyz.de">http://www.xyz.de</a> =>
ttp://www.xyz.de"
Updated by Chris topher over 14 years ago
The code of this function still is unchanged in current trunk.
Is this still a problem?
Updated by Natalie Kleine-Herzbruch over 14 years ago
TYPO3 Version 4.4..0
PHP Version 5.2.9-1
Yes, it is still a problem.
Updated by Chris topher over 14 years ago
Thanks for the reply!
Please send this as an RFC to Core List! Then it will be fixed in the next versions.
See here: http://typo3.org/teams/core/core-mailinglist-rules
Updated by Dmitry Dulepov over 13 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
0)
We now use Swiftmailer for sending mails. If the prolem is still reproducible, please, create a fresh report.