I do have powermail form in TYPO3 10. There are several email fields in the frontend which are checked with "This field contains the Email of the sender [sender_email]" checkbox. However after user fills the form in frontend - only first email is used to send confirmation email to user.
This might be related to getSenderMailFromArguments from MailRepository
public function getSenderMailFromArguments(Mail $mail, string $default = ''): string
{
$email = '';
foreach ($mail->getAnswers() as $answer) {
if ($answer->getField() !== null &&
$answer->getField()->isSenderEmail() &&
GeneralUtility::validEmail(trim($answer->getValue()))
) {
$email = trim($answer->getValue());
break;
}
}
if (empty($email)) {
$email = $this->getSenderMailFromDefault($default);
}
return $email;
}
Anyone has idea if it is possible to have several email beeing sent as a confirmation to user?
I'm not sure if this will work for confirmation emails too, but via TypoScript you can add multiple (b)cc-recipients.
https://github.com/einpraegsam/powermail/blob/master/Configuration/TypoScript/Main/Configuration/04_MailSender.typoscript#L52