This is a serverless component consisting of:
- an Api Gateway with a POST
/send-template
endpoint, that requires two parameters:toEmails
, andtemplateData
. It also accepts two optional ones:ccEmails
andreplyToEmails
. - a Lambda that sends a Templated email to one or more specified email addresses. It takes the Template Name from the initial CloudFormation deployment, which must be a valid and existing SES Template. It also needs the From Email parameter from the initial CloudFormation deployment, the verified email used to specify the source from which the emails are sent.
It's a Nuts & Bolts application component for AWS Serverless Application Repository.
This component has three CloudFormation deployment parameters:
FromEmail
, a required parameter, represents the email sender. Must be a SES verified email. If you attempt to send email using a non-verified address or domain, the operation results in an "Email address not verified" error.TemplateName
, a required parameter, representing the name of an existing and valid Email Template you want to use.CorsOrigin
, an optional parameter, where you can restrict access to only specified domains.
Initial release.
Here are the upcoming changes that I'll add to this serverless component:
- ESLint
- Tests