[BUGFIX] Adapt mail to the new format
This commit is contained in:
parent
74f9767cf4
commit
c191e6e635
@ -221,7 +221,7 @@ class MailUtility
|
|||||||
$textView->setTemplate($templateNameText);
|
$textView->setTemplate($templateNameText);
|
||||||
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||||
$mail->from(new Address($sender));
|
$mail->from(new Address(key($sender),$sender[key($sender)]));
|
||||||
$mail->subject($subject);
|
$mail->subject($subject);
|
||||||
} else {
|
} else {
|
||||||
$mail->setFrom($sender);
|
$mail->setFrom($sender);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user