mailazy-api

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mailazy-api

Homepage

mailazy.com/

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

6.98 kB

Total Files

5

Last publish

Collaborators

  • miceve