@sendstreak/sendstreak-node
v3.1.1
Published
Node.js SDK for SendStreak
Downloads
698
Maintainers
Readme
SendStreak Node.js SDK
SendStreak is a simple interface that lets you integrate quickly to Amazon SES, Gmail or any other SMTP server to send your transactional emails easily and pretty much for FREE.
New package!
Now with no dependencies and scoped package name!
Installation
$ npm install --save-exact @sendstreak/sendstreak-node
Usage
const SendStreak = require('@sendstreak/sendstreak-node');
const sendStreak = new SendStreak('YOUR_API_KEY');
// Push your contacts to SendStreak with as many attributes as you want
await sendStreak.updateContact({
email: '[email protected]',
firstName: 'John',
lastName: 'Doe',
onboarded: false
});
// Send them emails using predefined templates
await sendStreak.sendMail('[email protected]', 'customer-welcome-email', {
username: 'john_doe'
});