Skip to content

Commit 2563fe9

Browse files
committed
Merge branch 'release/4.0.1'
2 parents ebd1ba4 + 23a2f6a commit 2563fe9

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v4.0.1
2+
## 05/20/2023
3+
4+
1. [](#bugfix)
5+
* Fixed a bug with Email 4.0 ignoring `template:` parameter when dealing with multiple body sections
6+
17
# v4.0.0
28
## 05/09/2023
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Email
22
slug: email
33
type: plugin
4-
version: 4.0.0
4+
version: 4.0.1
55
testing: false
66
description: Enables the emailing system for Grav
77
icon: envelope

classes/Email.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ public function buildMessage(array $params, array $vars = []): Message
184184
if (isset($body_part['content_type'])) {
185185
$params_part['content_type'] = $body_part['content_type'];
186186
}
187+
if (isset($body_part['template'])) {
188+
$params_part['template'] = $body_part['template'];
189+
}
187190
if (isset($body_part['body'])) {
188191
$this->processBody($message, $params_part, $vars, $twig, $body_part['body']);
189192
}

0 commit comments

Comments
 (0)