Project

General

Profile

Actions

Bug #16777

closed

t3lib_htmlmail truncates last character in html mails

Added by Alban Cousinie over 17 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-12-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Michael Fritz over 17 years ago

same problem with hrefs,

<a href="http://www.xyz.de&quot;&gt;http://www.xyz.de&lt;/a> =>
ttp://www.xyz.de"

Actions #2

Updated by Chris topher about 14 years ago

The code of this function still is unchanged in current trunk.

Is this still a problem?

Actions #3

Updated by Natalie Kleine-Herzbruch almost 14 years ago

TYPO3 Version 4.4..0
PHP Version 5.2.9-1
Yes, it is still a problem.

Actions #4

Updated by Chris topher almost 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

Actions #5

Updated by Dmitry Dulepov almost 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.

Actions

Also available in: Atom PDF