@aktiva/transaksional-email
v1.0.2
Published
Aktiva Transaksional Email SDK for Node JS
Downloads
14
Readme
Aktiva Transaksional Email Node JS SDK
Node JS Library for Aktiva Transaksional Email API
Install
npm install @aktiva/transaksional-email
Setup
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>')
Usage
Send your first email:
await ate.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Aktiva Transaksioanl Email SDK',
text: 'Hi, this is a test email!'
})
Send using HTML
Send email using custom HTML content:
await ate.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Aktiva Transaksioanl Email SDK',
html: '<p>Hi, this is a test email!</p>'
})
Lincese
MIT Lincense