strapi-provider-email-amazon-ses-bulk
v1.0.1
Published
Email provider for bulk messages such as newsletters.
Downloads
6
Readme
strapi-provider-email-amazon-ses-bulk
Email provider for bulk messages such as newsletters.
Reguirements
Following env variables are required in order to use:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SES_REGION
Configuration
module.exports = ({ env }) => ({
email: {
provider: "amazon-ses-bulk",
settings: {
defaultFrom: env("DEFAULT_FROM", "[email protected]"),
defaultReplyTo: env("REPLY_TO", "[email protected]"),
},
},
});
Usage
options.method = "sendBulkTemplatedEmail"; // others: sendTemplatedEmail, sendEmail.
await strapi.plugins["email"].services.email
// "options" for sendBulkTemplatedEmail()
.send(options)
.then(console.log)
.catch(console.error);
Options details can found at here.