Project

General

Profile

Bug #69395 ยป form75_replyto.patch

Christian Hernmarck, 2015-09-25 14:40

View differences:

typo3/sysext/form/Classes/PostProcess/MailPostProcessor.php 2015-09-25 14:19:07.580702024 +0200
$this->setFrom();
$this->setTo();
$this->setCc();
$this->addReplyTo();
$this->setPriority();
$this->setOrganization();
$this->setHtmlContent();
......
}
/**
* Adds the replyto of the mail message when configured
*
* Sometimes the replyto is a combination of the name and the email address
*
* @return void
*/
protected function addReplyTo() {
$replytoEmail = '';
if ($this->typoScript['replytoEmail']) {
$replytoEmail = $this->typoScript['replytoEmail'];
} elseif ($this->getTypoScriptValueFromIncomingData('replytoEmailField')) {
$replytoEmail = $this->getTypoScriptValueFromIncomingData('replytoEmailField');
}
$replytoName = '';
if ($this->typoScript['replytoName']) {
$replytoName = $this->typoScript['replytoName'];
} elseif ($this->getTypoScriptValueFromIncomingData('replytoNameField')) {
$replytoName = $this->getTypoScriptValueFromIncomingData('replytoNameField');
}
$replytoName = $this->sanitizeHeaderString($replytoName);
$this->mailMessage->addReplyTo($replytoEmail, $replytoName);
}
/**
* Set the priority of the mail message
*
* When not in settings, the value will be 3. If the priority is configured,
    (1-1/1)