New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blackboard-send-mail

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blackboard-send-mail

Send e-mails from Node.js – easy as Peeled bananas! 🍌✉️

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

blackboard-send-mail

Send e-mails from Node.js – easy as Peeled bananas! 🍌✉️

npm version

NPM

Installation

$ npm install blackboard-send-mail

or

$ yarn add blackboard-send-mail

Importing

// Using Node.js `require()`
const bsm = require('blackboard-send-mail');

Overview

Connecting to Mail

First, we need to define a connection mail service. bsm.connect

bsm.connect({
    host: "HOST_MAIL_DOMAIN",
    auth: {
        user:"EMAIL_DOMAIN",
        pass: "PASSWORD"
    }
})

Send Email

bsm.sendMail({
    from: '"Fred Foo 👻" <foo@example.com>', // sender address
    to: "bar@example.com, baz@example.com", // list of receivers
    subject: "Hello ✔", // Subject line
    text: "Hello world?", // plain text body
    html: "<b>Hello world?</b>", // html body
  }).then(info => {
       console.log("Message sent: %s", info.messageId);
  // Message sent: <b658f8ca-6296-ccf4-8306-87d57a0b4321@example.com>
  });

Keywords

FAQs

Package last updated on 19 Nov 2020

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