Project

General

Profile

Actions

Feature #20196

closed

Setting additional headers is not possible in class.t3lib_htmlmail.php

Added by Christian Ehret over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

Is there any reason why function setHeaders() first clears $this->headers ?
It is not possible to use the public function add_header() and the "regular" way to send the mail with sendTheMail().

Couldn't the line 464 $this->headers = ''; be removed?

A workaround is to sent the mail without using the send function:

$htmlMail = t3lib_div::makeInstance('t3lib_htmlmail');
$htmlMail->start();

/* do something */

/* then send "manually" and set additional headers*/
$htmlMail->setHeaders();

$htmlMail->add_header('Envelope-From: <>');

$htmlMail->setContent();
$htmlMail->sendTheMail();
(issue imported from #M10710)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #14389: Enhancement to class.t3lib_htmlmail.phpClosedChris topher2004-11-15

Actions
Actions

Also available in: Atom PDF