Node JS Library for Aktiva Transaksional Email API
npm install @aktiva/transaksional-email
You need API token to authenticate the library with Aktiva Transaksional Email (ATE) API, which is available in the Aktiva Transaksional Email Dashboard
import { ATE } from '@aktiva/transaksional-email'
const ate = new ATE('<api-token>')
Send your first email:
await ate.emails.send({
from: 'developer@aktiva.co.id',
to: 'user@example.com',
subject: 'Hello from Aktiva Transaksioanl Email SDK',
text: 'Hi, this is a test email!'
})
Send email using custom HTML content:
await ate.emails.send({
from: 'developer@aktiva.co.id',
to: 'user@example.com',
subject: 'Hello from Aktiva Transaksioanl Email SDK',
html: '<p>Hi, this is a test email!</p>'
})
MIT Lincense