[TASK] Add TYPO3 10 compatibilty for MailUtility
This commit is contained in:
parent
c3d5d0ec63
commit
1d5c949477
@ -330,8 +330,13 @@ class MailUtility
|
|||||||
$htmlBody
|
$htmlBody
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$mail->setBody($textBody);
|
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||||
$mail->addPart($htmlBody, 'text/html');
|
$mail->html($htmlBody);
|
||||||
|
$mail->text($textBody);
|
||||||
|
} else {
|
||||||
|
$mail->setBody($textBody);
|
||||||
|
$mail->addPart($htmlBody, 'text/html');
|
||||||
|
}
|
||||||
$recipients = explode(
|
$recipients = explode(
|
||||||
',',
|
',',
|
||||||
$target
|
$target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user