nextrans-mail
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Nextrans Mail

Instalation

npm install nextrans-mail

How to use

import NextransMail from 'nextrans-mail';

const mailer = new NextransMail({
  host: process.env.MAIL_HOST as string,
  port: Number(process.env.MAIL_PORT),
  requireTLS: true,
  auth: { user: process.env.MAIL_USERNAME as string, pass: process.env.MAIL_PASSWORD as string },
  from: { name: 'Nextrans', email: 'no-reply@nextrans.id' },
});

const sendMail = await mailer
  .icon('success')
  .title('Yeay, Registrasi Telah Berhasil!')
  .p('Terima Kasih telah melakukan registrasi Nextrans.id')
  .p(
    'Selamat! Kamu sudah bisa melakukan transaksi melalui Nextrans.id <br/> Saat ini limit transaksi kamu sebesar <strong>Rp 500.000</strong>'
  )
  .p('Silahkan melakukan Verifikasi Data untuk meningkatkan limit transaksi kamu.')
  .action('Verifikasi Data', 'https://nextrans.id')
  .send({ name: 'Triyanto', email: to, cc: 'cs@nextrans.id', bcc: 'finance@nextrans.id' }, 'Registrasi Berhasil');

Readme

Keywords

none

Package Sidebar

Install

npm i nextrans-mail

Weekly Downloads

1

Version

0.1.4

License

ISC

Unpacked Size

21.9 kB

Total Files

18

Last publish

Collaborators

  • tri.nexpay