@iclasser/ink-mailer
v1.0.0
Published
Lightweight Ink-Des mailer client
Downloads
113
Readme
ink-mailer
Lightweight Ink-Des mailer client.
Install
npm install @iclasser/ink-mailerGet your credentials
- Get your API URL, Auth Token, Auth Key, and Tenant from your Ink-Des workspace on inkdes.com.
- Provide these values when creating the client in your app.
Usage
import InkDesMailer from '@iclasser/ink-mailer';
const mailer = new InkDesMailer({
apiUrl: process.env.INK_DES_API_URL!,
authToken: process.env.INK_DES_AUTH_TOKEN!,
authKey: process.env.INK_DES_AUTH_KEY!,
tenant: process.env.INK_DES_TENANT!,
// optional
defaultLanguage: 'en-US',
defaultSensitive: false,
timeoutMs: 10000,
});
await mailer.send({
experienceId: 'CONFIRM_EMAIL',
to: '[email protected]',
data: { nameTo: 'Jane', code: '123456' },
});Repo: GitHub
