Skip to content

Commit 1c9cb5b

Browse files
committed
fix for ignoring template in multiple body elements
1 parent 9c9e224 commit 1c9cb5b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
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

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)