1.0.0 • Published 6 years ago

mailer-pure v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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