This package has been deprecated

Author message:

Please go to https://www.npmjs.com/package/smtp-mailer for updated SDK

mailazy-node

0.3.0 • Public • Published

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

/mailazy-node/

    Package Sidebar

    Install

    npm i mailazy-node

    Homepage

    mailazy.com

    Weekly Downloads

    0

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    7.39 kB

    Total Files

    4

    Last publish

    Collaborators

    • mailazy