bdsender
Send email with amazon SES service
Install
npm install bdsender --save
# or
yarn add bdsender
Usage
const bdsender = require("bdsender");
bdsender.send({
awsCredentials: {
accessKeyId: "YOUR_ACCESS_KEY_ID",
secretAccessKey: "YOUR_ACCESS_SECRET_KEY",
region: "YOUR_REGION",
},
},
from: "no-reply@yourdomain.com",
to: ["validemail@email.com", "validemail2@email.com"],
subject: "test sendmail",
htmlBody: `
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
`
);
import bdsender from "bdsender";
bdsender.send({
awsCredentials: {
accessKeyId: "YOUR_ACCESS_KEY_ID",
secretAccessKey: "YOUR_ACCESS_SECRET_KEY",
region: "YOUR_REGION",
},
},
from: "no-reply@yourdomain.com",
to: ["validemail@email.com", "validemail2@email.com"],
subject: "test sendmail",
htmlBody: `
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
`
);