Issue Bug Closed

#103941TYPO3 Recipients Empty in Email to Sender Finisher empty after Overwrite

Alexander Nies 05/28/24, 08:20 updated 08/12/25, 14:36

Description

Steps to reproduce:

1. Create new Form with E-Mail to Sender finisher.

2. Set Recipients in E-Mail to Sender finisher.

3. Use This form on a Page with the Form Plugin.

4. Create new Recipient in Field “Recipients” and save.

5. Delete the Recipient again and save.

6. Send the form. This error appears:

(1/1) #1327060200 TYPO3\CMS\Form\Domain\Finishers\Exception\FinisherException
The option “recipients” must be set for the EmailFinisher.

in /home/stage/public/typo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php line 110
if ($subject === ‘’) {
throw new FinisherException(‘The option “subject” must be set for the EmailFinisher.’, 1327060320);
}
if (empty($recipients)) {
throw new FinisherException(‘The option “recipients” must be set for the EmailFinisher.’, 1327060200);
}
if (empty($senderAddress)) {
throw new FinisherException(‘The option “senderAddress” must be set for the EmailFinisher.’, 1327060210);
}
at TYPO3\CMS\Form\Domain\Finishers\EmailFinisher->executeInternal()
in /home/stage/public/typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php line 155
if (!$this->isEnabled()) {
return null;
}

return $this->executeInternal();
}
/**
 * This method is called in the concrete finisher whenever self::execute() is called.
at TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher->execute(object(TYPO3\CMS\Form\Domain\Finishers\FinisherContext))
in /home/stage/public/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php line 720
foreach ($this->formDefinition->getFinishers() as $finisher) {
$this->currentFinisher = $finisher;
$this->processVariants();
        $finisherOutput = $finisher->execute($finisherContext);
if (is_string($finisherOutput) && !empty($finisherOutput)) {
$output .= $finisherOutput;
} else {
$this->response->getBody()->rewind();
at TYPO3\CMS\Form\Domain\Runtime\FormRuntime->invokeFinishers()
in /home/stage/public/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php line 670
*/
public function render() {
if ($this->isAfterLastPage()) {
return $this->invokeFinishers();
}
$this->processVariants();
    $this->formState->setLastDisplayedPageIndex($this->currentPage->getIndex());

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.