@novo-x/aws-ses
v1.0.9
Published
AWS SES core
Downloads
4
Readme
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 protected]", "[email protected]"], // receivers
'My subject', // subject
'<h1>Hello World</h1>', // htmlBody
"[email protected]" // sender
);
const rawMsg = await MyService.sendEmail(
"[email protected]", // receiver
'My subject', // subject
'<h1>Hello World</h1>', // htmlBody
"[email protected]" // sender
);