$value) { $lines[] = str_pad($field . ':', 16) . $value; } $mail = GeneralUtility::makeInstance(MailMessage::class); $mail->to(...$recipients) ->subject($subject) ->text("Form: $formKey\n\n" . implode("\n", $lines)); $submitterEmail = trim((string)($payload['email'] ?? '')); if ($submitterEmail !== '' && filter_var($submitterEmail, FILTER_VALIDATE_EMAIL)) { $mail->replyTo($submitterEmail); } // v14: MailMessage::send() was removed - sending goes through the // Mailer service now (failures throw). Found 2026-09-28 via the // identical call in EXT:fe_comment: this delivery was latently // broken since the core upgrade. GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\Mailer::class)->send($mail); } }