[TASK] Insert domain for assets in mail utility
This commit is contained in:
parent
eb0d206673
commit
f00f35ba45
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user