Feature #20196
closedSetting additional headers is not possible in class.t3lib_htmlmail.php
0%
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: <user@domain.tld>');
$htmlMail->setContent();
$htmlMail->sendTheMail();
(issue imported from #M10710)
Updated by Christian Ehret over 15 years ago
sorry - I forgot to mention that I'm talking about class.t3lib_htmlmail.php!
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/
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.