1.0.9 • Published 2 years ago
@novo-x/aws-ses v1.0.9
AWS SES Service
Available methods
- sendEmail: sends email
- sendRawEmail: sends raw email
Usage examples
yarn add @novo-x/aws-ses
import {SES} from "@novo-x/aws-ses"
const MyService = new SES({
apiVersion: 'latest',
region: 'eu-west-3',
});
MyService.updateAwsConfig({
// ... AWS config
})
const msg = await MyService.sendEmail(
["email.1@email.com", "email.2@email.com"], // receivers
'My subject', // subject
'<h1>Hello World</h1>', // htmlBody
"from@email.com" // sender
);
const rawMsg = await MyService.sendEmail(
"email@email.com", // receiver
'My subject', // subject
'<h1>Hello World</h1>', // htmlBody
"from@email.com" // sender
);