From ef06dd7794a2db6eb67bf86336daa578f8cac333 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Thu, 4 Apr 2024 17:57:41 +0200 Subject: [PATCH] Replace insert tags in mail_* templates --- src/Gateway/MailerGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateway/MailerGateway.php b/src/Gateway/MailerGateway.php index fc0f0a9..7c341ea 100644 --- a/src/Gateway/MailerGateway.php +++ b/src/Gateway/MailerGateway.php @@ -191,7 +191,7 @@ private function renderEmailTemplate(Parcel $parcel): string $template->body = $this->replaceTokensAndInsertTags($parcel, StringUtil::restoreBasicEntities($languageConfig->getString('email_html'))); $template->language = LocaleUtil::formatAsLanguageTag($languageConfig->getString('language')); - return $template->parse(); + return $this->replaceInsertTags($template->parse()); } private function addAttachmentsFromTokens(LanguageConfig $languageConfig, Parcel $parcel, EmailStamp $emailStamp): EmailStamp