1.0.1 • Published 4 years ago
strapi-provider-email-aws-ses-service v1.0.1
strapi-provider-email-aws-ses-service
This package is an email provider for the headless CMS Strapi.
You can use this provider to send mail programmatically with strapi-plugin-email.
This provider enables you to send email with Amazon AWS SES.
Installation
# using yarn
yarn add strapi-provider-email-aws-ses-service
# using npm
npm install strapi-provider-email-aws-ses-service --saveSetup
1) Use your AWS cridentials accessKeyId and secretAccessKey
2) Configure the provider in config/plugins with cridentials in 1)
| Variable | Type | Description | Required | Default | |||
|---|---|---|---|---|---|---|---|
| provider | string | The name of the provider - aws-ses-service | yes | ||||
| providerOptions | object | Provider options | yes | ||||
| providerOptions.accessKeyId | string | Your accessKeyId gotten from your AWS Account | yes | ||||
| providerOptions.secretAccessKey | string | Your secretAccessKey gotten from your AWS Account | yes | yes | |||
| providerOptions.region | string | The region of your AWS Account | yes | ||||
| settings | object | Settings | no | {} | |||
| settings.defaultFrom | string | Default sender mail address, exist in domain | 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: "aws-ses-service",
providerOptions: {
accessKeyId: "your aws accessKeyId",
secretAccessKey: "your aws secretAccessKey",
region: "your aws region",
},
settings: {
defaultFrom: "myemail@example.com",
defaultReplyTo: "myemail@example.com",
},
},
// ...
});