Socket
Book a DemoInstallSign in
Socket

mailer-pure

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailer-pure

pure mailer by node

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

mailer-pure

version

build coverage

npm node

license

purpose

study send mail.

install

npm i -D mailer-pure

config test

npm test

cover test

npm run cover

usage

const fs = require('fs')
const path = require('path')

const Mailer = require('mailer-pure')
const mailer = new Mailer(<email>, <pass>)

const send = async () => {
  const data = await mailer.send({
    to: <to email>,
    subject: <subject>,
    html: fs.createReadStream(path.resolve(__dirname, <path/to/file>)),
    attachments: [{
      filename: <filename>,
      content: fs.createReadStream(path.resolve(__dirname, <path/to/file>))
    }]
  })
  console.info(data)
}

send()

License

MIT

knowledge

  • nodemailer --> https://nodemailer.com/about/

  • editorconfig

  • travis

  • license

    MIT --> https://opensource.org/licenses/MIT

  • badge

    shields --> https://shields.io/

  • cover

    istanbul --> https://www.npmjs.com/package/istanbul

Keywords

mailer

FAQs

Package last updated on 06 Jun 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.