#45238Add field recipientEmailField to core extension -> form
Description
Extend method setTo() so that it is possible to set the recipient email address from a from-field.
Possible Solution could be:
protected function setTo() {
if (
$this->typoScript['recipientEmail'] &&
t3lib_div::validEmail($this->typoScript['recipientEmail'])
) {
$this->mailMessage->setTo($this->typoScript['recipientEmail']);
} elseif ($this->requestHandler->has($this->typoScript['recipientEmailField'])) {
$this->mailMessage->setTo($this->requestHandler->get($this->typoScript['recipientEmailField']));
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.