Skip to content

Commit

Permalink
Merge branch 'release/3.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Apr 6, 2021
2 parents 3089cd0 + b60b645 commit df70efe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions email.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit df70efe

Please sign in to comment.