Project

General

Profile

Actions

Bug #19488

closed

class.t3lib_htmlmail.php brings a two semicolon in mail-header

Added by Steffen no-lastname-given about 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since ver. 4.2.2 I have two semicolon in a line of the mail-header in multipart-mails.
This line in received mails is now "Content-Type: multipart/related;;".
Therefore some spam and virus filters doesn't accept this mail.

Maybe the solution is the line 566 in class.t3lib_htmlmail.php (new in ver. 4.2.2):
565 // Generate plain/HTML mail
566 $this->add_header('Content-Type: ' . $this->getHTMLContentType() . ';');
this line adds a semicolon, but in 533 comes already a semicolon with the value.
533 public function getHTMLContentType() {
534 return (count($this->theParts['html']['media']) ? 'multipart/related;' : 'multipart/alternative;');
535 }
After deleting this semicolon in 566 everthing works fine, but I don't now, if I get other problems with this solution.

(issue imported from #M9612)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #19441: class.t3lib_htmlmail.php produces null headers in HTML messagesClosedOliver Hader2008-10-09

Actions
Actions

Also available in: Atom PDF