0.3.0 • Published 2 years ago

mailazy-node v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

mailazy-node

Mailazy NodeJs SDK Client

Table of Contents

Install

Prerequisites

Generate Access Keys

You need a sender/domain authenticated account in order to generate Access Keys from the Mailazy Console

Install Package

npm:

npm install mailazy-node

yarn:

yarn add mailazy-node

Usage

const MailazyClient = require('mailazy-node');
const client = new MailazyClient({ accessKey: '', accessSecret: '' });

const fn = async () => {
  try {
    const resp = await client.send({
      to: 'test@example.com', // required
      from: 'no-reply@example.com', // Use domain you verified, required
      subject: '', // required
      text: '',
      html: '',
      reply_to: 'someone@example.com'
    });
    console.log('resp: ' + resp);
  } catch (e) {
    console.log('error: ' + e);
  }
};
fn();

License

MIT © Mailazy

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

3 years ago