1.1.0 • Published 9 months ago

strapi-email-aws-ses-v3 v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

AWS SES Email Service Module

This module provides a simple interface for sending emails using Amazon Simple Email Service (SES) via the AWS SDK.

Table of Contents

Resources

This module uses the AWS SDK to interact with the SES service to send emails.

Links

Installation

Using npm

npm install strapi-email-aws-ses-v3

Using yarn

yarn add strapi-email-aws-ses-v3

Configuration

VariableTypeDescriptionRequiredDefault
providerOptionsobjectConfiguration options for the SES client. See AWS SDK documentation.yesN/A
settingsobjectGeneral email settings, such as default sender and reply-to addresses.yesN/A
settings.defaultFromstringThe default sender email address.yesundefined
settings.defaultReplyTostringThe default reply-to email address or array of addresses.yesundefined

Example

Path - config/plugins.js

module.exports = ({ env }) => ({
  // ...
   email: {
      config: {
        provider: 'strapi-email-aws-ses-v3',
        providerOptions: {
          credentials: AwsCredentialsObject,
          region: env("AWS_REGION"),
        },
        settings: {
          defaultFrom: env("DEFAULT_FROM"),
          defaultReplyTo: env("DEFAULT_REPLY_TO"),
        },
      },
    },
  // ...
});

Error Handling

  • Initialization errors: If defaultFrom or defaultReplyTo are not provided in the settings, an error will be thrown.
  • SES errors: The method will return an error if sending via AWS SES fails. Ensure proper AWS credentials and permissions are set up.
1.1.0

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago