1.0.4 • Published 8 years ago
tq-notification v1.0.4
Tq-notification
Installation
npm install tq-notification --save
Usage
var tq = require('tq-notification');
tq.init('localhost:3002', function(error, result) {
if (error) {
console.log(error)
return
}
console.log("> init done: ", result);
var msg = {
request_id: 12345,
transport: 'email',
message: {
to: 'client@gmail.com',
subject: 'test',
body: "Hello my Dear",
attachment: "ATTACHMENT"
}
};
tq.send(msg).then(function() {
console.log("> the message was sent")
})
})