@sendstreak/sendstreak-node
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

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: 'johndoe@example.com',
    firstName: 'John',
    lastName: 'Doe',
    onboarded: false
});

// Send them emails using predefined templates
await sendStreak.sendMail('johndoe@example.com', 'customer-welcome-email', {
    username: 'john_doe'
});

Package Sidebar

Install

npm i @sendstreak/sendstreak-node

Weekly Downloads

267

Version

3.1.1

License

Apache-2.0

Unpacked Size

10.9 kB

Total Files

11

Last publish

Collaborators

  • sendstreak