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 about 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 #1

Updated by Christian Ehret over 15 years ago

sorry - I forgot to mention that I'm talking about class.t3lib_htmlmail.php!

Actions #2

Updated by Chris topher over 14 years ago

Hi Christian,

the behaviour that setHeaders() first clears $this->headers was introduced, when the patches for #17922 and #17922 were committed.
I didn't find a comment about that, but seems like that was just part of fixing #17922.

I propose you change it as you wish and then post your patch to Core List!
Check out http://typo3.org/development/bug-fixing/mailing-list/

Actions #3

Updated by Dmitry Dulepov about 13 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (0)

Now we have a Swift mailer. This bug is too old. Closing.

Actions

Also available in: Atom PDF