From fa0e4274ea4241711c271e24ff7597401fc8c076 Mon Sep 17 00:00:00 2001 From: stanschus Date: Wed, 31 Mar 2021 20:55:17 +0200 Subject: [PATCH 1/2] Added new event to make message object available for editing (e.g. signing, encrypting) before sending (#150) * - Added new event to make message object available for editing (e.g. attaching signers) before sending * shorter event name included $params and $form --- email.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/email.php b/email.php index 8879aed..cc86050 100644 --- a/email.php +++ b/email.php @@ -159,6 +159,9 @@ protected function sendFormEmail($form, $params, $vars) } } + //fire event to apply optional signers + $this->grav->fireEvent('onEmailMessage', new Event(['message' => $message, 'params' => $params, 'form' => $form])); + // Send e-mail $this->email->send($message); } From b60b645134ab2cadc03c4483d2a8adb4c212d38a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 6 Apr 2021 11:03:11 -0600 Subject: [PATCH 2/2] prepare for release --- CHANGELOG.md | 12 +++++++++--- blueprints.yaml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1f0470..53435a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ +# v3.1.2 +## 04/06/2021 + +1. [](#new) + * Added new `onEmailMessage` event to make object available for editing [#150](https://github.com/getgrav/grav-plugin-email/pull/150) + # v3.1.1 ## 01/31/2021 1. [](#improved) - * Latest vendor updates including SwiftMailer `6.2.5` - * Updated CLI commands - * Minor code cleanup + * Latest vendor updates including SwiftMailer `6.2.5` + * Updated CLI commands + * Minor code cleanup # v3.1.0 ## 12/02/2020 diff --git a/blueprints.yaml b/blueprints.yaml index 581f905..e331972 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Email slug: email type: plugin -version: 3.1.1 +version: 3.1.2 testing: false description: Enables the emailing system for Grav icon: envelope