1.2.1 • Published 4 years ago
cm-email-sdk v1.2.1
CM E-Mail SDK
Made by Flixcheck GmbH
Introduction
This is a very simple JavaScipt SDK for CM's e-mail campaign service.
Installation
npm install cm-email-sdk
Usage
const CmEmailClient = require("cm-email-sdk");
const client = new CmEmailClient(accountId, productToken);
await client.setFrom(
"my-added-address@my-validated-domain.com",
"Some Sendername"
);
await client.send(
"recipient@example.com",
"Bob Dylan",
"Welcome, Bob!",
"This is a test e-mail.\n\nDid it arrive?"
);
For more examples check out the /examples
folder.