mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 19:36:20 +00:00
Updated README docs & package.json `engine` versions to bump up the minimum required Node version from `10.10` to `10.16` (or `10.16.0+`) Strapi no longer supports `10.10` since it updated `sharp` to `0.26.0` ( https://github.com/strapi/strapi/pull/7729 ) which requires Node 10.16.0+ (See https://github.com/lovell/sharp/blob/master/docs/changelog.md#v0260---25th-august-2020 ) ` yarn create strapi-app my-project --quickstart` on 10.10 fails with error ``` error sharp@0.26.0: The engine "node" is incompatible with this module. Expected version ">=10.16.0". Got "10.10.0" error Found incompatible module. ``` Signed-off-by: Peter Etelej <peter@etelej.com>
strapi-provider-email-sendgrid
Resources
Links
Prerequisites
You need to have the plugin strapi-plugin-email installed in you Strapi project.
Installation
# using yarn
yarn add strapi-provider-email-sendgrid
# using npm
npm install strapi-provider-email-sendgrid --save
Configuration
| Variable | Type | Description | Required | Default |
|---|---|---|---|---|
| provider | string | The name of the provider you use | yes | |
| providerOptions | object | Provider options | yes | |
| providerOptions.apiKey | object | Api key given to the function setApiKey. Please refer to @sendgrid/mail | yes | |
| settings | object | Settings | no | {} |
| settings.defaultFrom | string | Default sender mail address | no | undefined |
| settings.defaultReplyTo | string | array | Default address or addresses the receiver is asked to reply to | no | undefined |
Example
Path - config/plugins.js
module.exports = ({ env }) => ({
// ...
email: {
provider: 'sendgrid',
providerOptions: {
apiKey: env('SENDGRID_API_KEY'),
},
settings: {
defaultFrom: 'myemail@protonmail.com',
defaultReplyTo: 'myemail@protonmail.com',
},
},
// ...
});