From fd3f4d489e1940d18297a53ed8870c5b1f5c7a10 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 2 May 2016 17:59:56 -0700 Subject: [PATCH] Fix for Mail shortcode parsing. --- e107_handlers/mail.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e107_handlers/mail.php b/e107_handlers/mail.php index c5611a7d8..c98a09828 100644 --- a/e107_handlers/mail.php +++ b/e107_handlers/mail.php @@ -812,9 +812,7 @@ class e107Email extends PHPMailer $eml['shortcodes'] = $this->processShortcodes($eml); - // print_a($eml); - - $emailBody = $tmpl['header']. $tmpl['body'] . $tmpl['footer']; + $emailBody = $tmpl['header']. str_replace('{BODY}', $eml['body'], $tmpl['body']) . $tmpl['footer']; $eml['body'] = $tp->parseTemplate($emailBody, true, $eml['shortcodes']);