Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ansaro/emailer

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ansaro/emailer

Send an email

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Emailer

Sends an email 💌

yarn add @ansaro/emailer

Usage

Set environment variable SES_SOURCE to an email address that the email should be sent from (e.g. no-reply@example.tld).

sendEmail is an asynchronous function that takes these arguments:

  • recipients list of email addresses to send email to
  • subject is the subject for the email
  • bodyText is the text version of the email
  • bodyHTML is the HTML version of the email
const { sendEmail } = require("@ansaro/emailer");

const recipients = ["max.beatty@ansaro.ai"];
const subject = "Hello World";
const bodyText = "This is a plain email";
const bodyHTML = "<p>This is a <strong>nice</strong> email</p>";

async function () {
    await sendEmail(recipients, subject, bodyText, bodyHTML);
}

FAQs

Package last updated on 25 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc