๐ขNodeJS
Send messages on Enveloop by using the node SDK
Install the Enveloop node package
yarn
yarn add enveloop
npm
npm install --save enveloop
Send Messages
const Enveloop = require("enveloop")
const enveloop = new Enveloop({ apiKey: "test_eYLQRrzxLcLAlmb2H5BXIFSUor3h/tRr" })
enveloop.sendMessage({
template: "user-welcome",
to: "[email protected]",
from: "Chris Traeger <[email protected]>",
subject: "Welcome to Pawnee",
templateVariables: {
name: "Leslie Knope"
}
})
.then(res => console.log(res))
.catch(err => console.log(err))
Last updated