0.1.1 • Published 8 years ago

emailsender v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

#emailsender

send mail easily for nodejs developer!

##demo

var sender = require('emailsender')

var mailConfig = {
      host: 'smtp.163.com',
      port: 465,
      secure: true,
      auth: {
        user: 'youthschina@163.com',
        pass: ''
      }
    }

var _sender = new sender(mailConfig)

var mailOptions = {
      from: 'youthschina@163.com',
      to: 'mailOptions',
      text: 'yes'
    }

var callback = function(err, info){
      //callback handle
    }

_sender.send(mailOptions, callback)

#config

mailConfigs

mailOptions

callback

#api

##send email emailsender.prototype.send(mailOptions,callback)

##use promise emailsender.prototype.promise().send(mailOptions).then().catch()