npm.io
1.0.0 • Published 8 years ago

mailer-pure

Licence
MIT
Version
1.0.0
Deps
0
Size
7 kB
Vulns
0
Weekly
0

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
  1. nodemailer --> https://nodemailer.com/about/

  2. editorconfig

  3. travis

  4. license

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

  5. badge

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

  6. cover

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

Keywords