mailer-pure

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mailer-pure

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

6.77 kB

Total Files

11

Last publish

Collaborators

  • soonfy