SES Mailer
About
Opinionated Amazon SES sender built for Download Youth Ministry. This package
includes multiple templates to make sending simple and easy. This package
provides wrapper for rate limits for amazon ses.
Requirements
Installation
npm install ses-mailer
Usage
Send Email
This Example can be found in /examples/index.js
const { createMail, sendMail } = require("..")
const mail = createMail({
template: "template_1",
to: "chrisburgin95@gmail.com",
from: "chrisburgin95@gmail.com",
subject: "This is the email subject",
content: {
header: "Header of the email",
subHeader: "Sub Header of the email",
body:
"This is the body content of the email, its not much, but its something",
footer: "Footer information of the email",
},
})
sendMail(mail)
.then(() => console.log("finished"))
.catch(error => console.log("error ", error))