-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from dostuffthatmatters/master
Upgrade to [email protected]
- Loading branch information
Showing
4 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. | |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [4.0.0] - 2021-12-12 | ||
|
||
### [4.0.0] Release | ||
|
||
- Upgrades to `[email protected]` | ||
- Upgrades to `[email protected]` | ||
|
||
## [3.5.1] - 2021-03-17 | ||
|
||
### Fixed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,24 +38,32 @@ Path - `config/plugins.js` | |
module.exports = ({ env }) => ({ | ||
// ... | ||
email: { | ||
provider: "postmark", | ||
providerOptions: { | ||
apiKey: "your-postmark-api-key", | ||
}, | ||
settings: { | ||
defaultMessageStream: "my-stream", | ||
defaultFrom: "[email protected]", | ||
defaultTo: "[email protected]", | ||
defaultReplyTo: "[email protected]", | ||
defaultVariables: { | ||
sentBy: 'strapi', | ||
config: { | ||
provider: "strapi-provider-email-postmark", | ||
providerOptions: { | ||
apiKey: "your-postmark-api-key", | ||
}, | ||
}, | ||
settings: { | ||
defaultMessageStream: "my-stream", | ||
defaultFrom: "[email protected]", | ||
defaultTo: "[email protected]", | ||
defaultReplyTo: "[email protected]", | ||
defaultVariables: { | ||
sentBy: 'strapi', | ||
}, | ||
}, | ||
} | ||
}, | ||
// ... | ||
}); | ||
``` | ||
|
||
**IMPORTANT:** With Strapi v4, you have to set `email.config.provider` to "strapi-provider-email-postmark", instead of "postmark". This is intended in Strapi v4: https://github.com/strapi/strapi/issues/11879. | ||
|
||
Additionally, the structure of `plugins.js` has changed: | ||
- In v3: `"email": {"provider": "", ...}` | ||
- In v4: `"email": {"config": {"provider": "", ...}}` | ||
|
||
### Usage | ||
|
||
Call the `send` function on the email service, as you would for any strapi email service. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "strapi-provider-email-postmark", | ||
"version": "3.5.1", | ||
"version": "4.0.0", | ||
"description": "Strapi Email service provider for Postmark", | ||
"author": { | ||
"email": "[email protected]", | ||
|
@@ -11,8 +11,8 @@ | |
}, | ||
"main": "./lib", | ||
"dependencies": { | ||
"postmark": "^2.5.4", | ||
"strapi-utils": "3.0.4" | ||
"postmark": "^2.7.8", | ||
"@strapi/utils": "4.0.0" | ||
}, | ||
"strapi": { | ||
"isProvider": true | ||
|