@helloxyz/node_notification
v1.1.1
Published
Notification
Readme
node_notification
node module for notification, currently only support email notification
Install
$ npm i @helloxyz/node_notificationUsage
var notification = require('./index')
var from = '[email protected]'
var to = '[email protected], [email protected]'
var smtpConfig = {
host: 'smtp.163.com',
port: 25,
secure: false,
auth: {
user: from,
pass: 'xxx'
}
}
notification.initialize('email', {
smtpConfig: smtpConfig,
from: from,
to: to
})
notification.send({
subject: 'test email from notification module',
message: 'hello world!!!'
})