Socket
Socket
Sign inDemoInstall

smtp-email-sender

Package Overview
Dependencies
20
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    smtp-email-sender

Lets you send emails using SMTP


Version published
Weekly downloads
46
decreased by-34.29%
Maintainers
1
Install size
2.16 MB
Created
Weekly downloads
 

Readme

Source

smtp-email-sender

Send emails using SMTP via NodeJS + Nodemailer

"Inspired" by https://github.com/schme16/ses-email-sender

Installation

npm i -s smtp-email-sender

Usage


//Initialize the library (only required once)
const email = require('smtp-email-sender')({
  host: "<YOUR_SMTP_HOST>",
  port: "<YOUR_SMTP_PORT>",
  auth: {
    user: "<YOUR_SMTP_USER>",
    pass: "<YOUR_SMTP_PASS>",
    type: "<YOUR_SMTP_AUTHETICATION_MODE>", // PLAIN, LOGIN, MD5 etc...
  },
  secure: "<YOUR_SMTP_SECURE_OPTION>"
})

email({
  from: "john@doe.com",
  to: "jane@doe.com",
  subject: "Date tonight?",
  html: "Hey Honey, Do you ready for date tonight?",
})

Keywords

FAQs

Last updated on 11 Jun 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc