0.1.2 • Published 3 years ago

mailazy-api v0.1.2

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

mailazy-api

Unofficial Mailazy NodeJs SDK Client with some internal boost (faster & less-buggy)

Table of Contents

Install

Prerequisites

  • Node.js version >= 10
  • Mailazy account, sign up for free to send up to 50,000 email/month free.

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-api

yarn:

yarn add mailazy-api

Usage

const MailazyClient = require('mailazy-api');

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: '',
        });
        console.log("resp: " + resp);
    } catch (e) {
        console.log("errror: " + e);
    }
}

fn();

License

MIT © Mailazy & Angrymouse

0.1.2

3 years ago

0.1.1

3 years ago