emailsender
v0.1.1
Published
send mail easily for nodejs developer
Downloads
17
Maintainers
Readme
#emailsender
send mail easily for nodejs developer!
##demo
var sender = require('emailsender')
var mailConfig = {
host: 'smtp.163.com',
port: 465,
secure: true,
auth: {
user: '[email protected]',
pass: ''
}
}
var _sender = new sender(mailConfig)
var mailOptions = {
from: '[email protected]',
to: 'mailOptions',
text: 'yes'
}
var callback = function(err, info){
//callback handle
}
_sender.send(mailOptions, callback)
#config
#api
##send email emailsender.prototype.send(mailOptions,callback)
##use promise emailsender.prototype.promise().send(mailOptions).then().catch()