Issue Bug Closed

#88702EmailFinisher - Recipients - Cannot unpack array with string keys

Joerg Boesche 07/08/19, 13:54 updated 12/23/19, 22:49

Description

The EmailFinisher throws an exception with the message “Cannot unpack array with string keys” if the recipient list has a “Human-readable name of the sender” and an “Email address of the sender (Default: “{email}”)”.

Affected class: \TYPO3\CMS\Form\Domain\Finishers\EmailFinisher
Method: executeInternal
Input-Variable $recipients:

$recipients = [
 'foo@bar.com => 'Foo Bar'
];
...
        $mail->from(new NamedAddress($senderAddress, $senderName))
            ->to(...$recipients)
            ->subject($subject);
...

Reviews 1