1.0.0 • Published 11 months ago

bdsender-ses v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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>
    `
);
1.0.0

11 months ago