From d4663eb8034b82eec491e0784abd4fb2fc5f2eab Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 16:56:14 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- plugins/email/CHANGELOG.md | 6 ++++++ plugins/email/blueprints.yaml | 2 +- plugins/email/classes/Email.php | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/email/CHANGELOG.md b/plugins/email/CHANGELOG.md index 9535b63..f892ce1 100644 --- a/plugins/email/CHANGELOG.md +++ b/plugins/email/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.0.1 +## 05/20/2023 + +1. [](#bugfix) + * Fixed a bug with Email 4.0 ignoring `template:` parameter when dealing with multiple body sections + # v4.0.0 ## 05/09/2023 diff --git a/plugins/email/blueprints.yaml b/plugins/email/blueprints.yaml index c96c39c..68c89de 100644 --- a/plugins/email/blueprints.yaml +++ b/plugins/email/blueprints.yaml @@ -1,7 +1,7 @@ name: Email slug: email type: plugin -version: 4.0.0 +version: 4.0.1 testing: false description: Enables the emailing system for Grav icon: envelope diff --git a/plugins/email/classes/Email.php b/plugins/email/classes/Email.php index 6ceedf8..617bbee 100644 --- a/plugins/email/classes/Email.php +++ b/plugins/email/classes/Email.php @@ -184,6 +184,9 @@ class Email if (isset($body_part['content_type'])) { $params_part['content_type'] = $body_part['content_type']; } + if (isset($body_part['template'])) { + $params_part['template'] = $body_part['template']; + } if (isset($body_part['body'])) { $this->processBody($message, $params_part, $vars, $twig, $body_part['body']); }