[TASK] Mailutility: Update logic to set sender for TYPO3 > 10
This commit is contained in:
parent
6388fd7bb0
commit
5cf947a1da
@ -218,12 +218,15 @@ class MailUtility
|
|||||||
$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->subject($subject);
|
$mail->subject($subject);
|
||||||
$mail->from($sender);
|
if ($sender) {
|
||||||
}else {
|
$mail->from($sender);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
$mail->setSubject($subject);
|
$mail->setSubject($subject);
|
||||||
$mail->setFrom($sender);
|
if ($sender) {
|
||||||
|
$mail->setFrom($sender);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$bodydataText = [];
|
$bodydataText = [];
|
||||||
$bodydataHtml = [];
|
$bodydataHtml = [];
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user