@aktiva/transaksional-email
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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: 'developer@aktiva.co.id',
  to: 'user@example.com',
  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: 'developer@aktiva.co.id',
  to: 'user@example.com',
  subject: 'Hello from Aktiva Transaksioanl Email SDK',
  html: '<p>Hi, this is a test email!</p>'
}) 

Lincese

MIT Lincense

Package Sidebar

Install

npm i @aktiva/transaksional-email

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

19.7 kB

Total Files

7

Last publish

Collaborators

  • richyana
  • developer-aktiva