Lightweight Ink-Des mailer client.
npm install ink-mailer- 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.
import InkDesMailer from '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: 'user@example.com',
data: { nameTo: 'Jane', code: '123456' },
});Repo: GitHub