1.0.5 • Published 3 years ago
@revotechuet/wi-notification v1.0.5
WI-NOTIFICATION
I2g simple notification package
Build
npm version patch
npm publish
git pushHow to use
npm install @revotechuet/wi-notification@latestInit
const wiNotification = require('./index');
let wiNoti = new wiNotification({
    "user": "smtpuser",
    "password": "smtppasswd",
    "telegram": {
        "bot_token": "bot:token",
        "chat_id": "123456789"
    }
});wiNoti.sendMail({
    to: "buidanghoang@gmail.com",
    messageHtml: "this is html <b>CONTENT</b>",
    subject: "Hello"
});Telegram
wiNoti.sendTelegramMessage({
    text: "This is test text"
})Slack
wiNoti.sendSlackMessage({
    
})