2.2.1 • Published 2 years ago

@tinkermail/tinkermail-node v2.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Tinkermail Node.js SDK

Tinkermail 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 @tinkermail/tinkermail-node

Usage

const TinkerMail = require('@tinkermail/tinkermail-node');
const tinkerMail = new TinkerMail('YOUR_API_KEY');

// Push your contacts to tinkermail with as many attributes as you want
await tinkerMail.updateContact({
    email: 'johndoe@example.com',
    firstName: 'John',
    lastName: 'Doe',
    onboarded: false
});

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