Constructors
constructor
- new SES(options?): SES
Parameters
- options: {
region?: string;
} = {}
Returns SES
Properties
client
client: SESv2Client
Methods
deleteTemplate
- deleteTemplate(templateName): Promise<void>
Returns Promise<void>
getTemplate
- getTemplate(templateName): Promise<EmailTemplateContent>
Returns Promise<EmailTemplateContent>
sendEmail
- sendEmail(emailData, sesParams): Promise<any>
Returns Promise<any>
sendTemplatedEmail
- sendTemplatedEmail(emailData, sesParams): Promise<SendEmailCommandOutput>
Returns Promise<SendEmailCommandOutput>
setTemplate
- setTemplate(templateName, subject, content, isHTML?): Promise<void>
Parameters
- templateName: string
- subject: string
- content: string
Optional
isHTML: boolean
Returns Promise<void>
testTemplate
- testTemplate(templateName, data): Promise<string>
Parameters
- templateName: string
- data: {
[variable: string]: any;
}
Returns Promise<string>
A wrapper for AWS Simple Email Service.