From c191e6e635b04898f3f949684f2766f7f4c41d14 Mon Sep 17 00:00:00 2001 From: nourmkaouar Date: Fri, 17 Jan 2025 17:58:34 +0100 Subject: [PATCH] [BUGFIX] Adapt mail to the new format --- Classes/Utility/MailUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Utility/MailUtility.php b/Classes/Utility/MailUtility.php index ec16c07..28bdc6c 100644 --- a/Classes/Utility/MailUtility.php +++ b/Classes/Utility/MailUtility.php @@ -221,7 +221,7 @@ class MailUtility $textView->setTemplate($templateNameText); $mail = GeneralUtility::makeInstance(MailMessage::class); if (version_compare(TYPO3_branch, '10.0', '>=')) { - $mail->from(new Address($sender)); + $mail->from(new Address(key($sender),$sender[key($sender)])); $mail->subject($subject); } else { $mail->setFrom($sender);