Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters authored Dec 13, 2021
1 parent 0e2ba63 commit 19dec93
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = ({ env }) => ({
// ...
email: {
config: {
provider: "postmark",
provider: "strapi-provider-email-postmark",
providerOptions: {
apiKey: "your-postmark-api-key",
},
Expand All @@ -58,17 +58,11 @@ module.exports = ({ env }) => ({
});
```

**IMPORTANT:** With Strapi v4, you might have to set `email.config.provider` to "strapi-provider-email-postmark". Whether this is a bug or a feature in Strapi v4 is not clear yet: https://github.com/strapi/strapi/issues/11879
**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.

**If migrating from Strapi v3:** The structure of `plugins.js` changed
In v3:
```json
"email": {"provider": "", ...}
```
In v4:
```json
"email": {"config": {"provider": "", ...}}
```
Additionally, the structure of `plugins.js` has changed:
- In v3: `"email": {"provider": "", ...}`
- In v4: `"email": {"config": {"provider": "", ...}}`

### Usage

Expand Down

0 comments on commit 19dec93

Please sign in to comment.