Project

General

Profile

Actions

Bug #20330

closed

Send mails to different adresses per language (TSFE->sendFormmail)

Added by C. Finkemeier & M. Loheide over 15 years ago. Updated about 11 years ago.

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

0%

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

Description

When trying to send an formular (CType: FORM) to different recipient addresses per localized content element, the mail has always been sent to the email adress filled in the default content element.

I give an example:
The default content element recipient address in the subheader field is "" and the recipient address of the french content element is "" the mails will always sent to "".

This is because the "locationData" always points to the default content element.

This can be fixed by overlaying the record fields in the method tslib_fe.php->sendFormmail (btw. versioning should be enabled, too) - see attachment.
  • 2451 $locData = explode(':',$locationData);
  • 2452 $record = $this->sys_page->checkRecord($locData1,$locData2,1);
    +++ // Language Overlay:
    +++ if (is_array($record) && $this->sys_language_contentOL) {
    +++ $record = $this->sys_page->getRecordOverlay($locData1, $record, $this->sys_language_content, $this->sys_language_contentOL);
    +++ }

(issue imported from #M10946)


Files

workaround.txt (2.71 KB) workaround.txt Administrator Admin, 2009-04-21 14:55
Actions

Also available in: Atom PDF