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