Project

General

Profile

Actions

Bug #25301

closed

Setting "Reply-To" fails in class.t3lib_formmail.php

Added by Jan Radecker over 13 years ago. Updated about 6 years ago.

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

100%

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

Description

t3lib_formmail tries to set a "Reply-To:" Header but fails doing so because of a wrong call of method "addReplyTo()" from swiftmailer.

The method "addReplyTo()" of class "t3lib_mail_Message" (which extends Swift_Message) expects to parameters of "string" type.
But t3lib_formmail sets an array as argument to "addReplyTo()".

Original Code (line 232...):
$replyTo = $this->replyToName ? array($this->replyToAddress => $this->replyToName) : array($this->replyToAddress);
$this->mailMessage->addReplyTo($replyTo);

This can be fixed by using this line instead:
$this->mailMessage->addReplyTo($this->replyToAddress, $this->replyToName);

(issue imported from #M17916)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #25415: t3lib_formmail: addReplyTo method of Swift Mailer SimpleMessage, called with wrong argumentsClosed2011-03-29

Actions
Actions

Also available in: Atom PDF