Email provider for bulk messages such as newsletters.
Following env variables are required in order to use:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SES_REGION
module.exports = ({ env }) => ({
email: {
provider: "amazon-ses-bulk",
settings: {
defaultFrom: env("DEFAULT_FROM", "hello@example.com"),
defaultReplyTo: env("REPLY_TO", "hello@example.com"),
},
},
});
await strapi.plugins["email"].services.email
// "options" for sendBulkTemplatedEmail()
.send(options)
.then(console.log)
.catch(console.error);
Options details can found at here.