[TASK] Insert domain for assets in mail utility

This commit is contained in:
Philipp Dieter 2021-06-13 19:33:08 +02:00
parent eb0d206673
commit f00f35ba45

View File

@ -240,6 +240,13 @@ class MailUtility
$htmlView->assign('domain', $domain);
$textBody = $textView->render();
$htmlBody = $htmlView->render();
if ($domain) {
$htmlBody = str_replace(
'src="/assets',
'src="' . $domain . '/assets',
$htmlBody
);
}
$mail->setBody($textBody);
$mail->addPart($htmlBody, 'text/html');
$recipients = explode(