Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

ItalyPaleAle/mailjet3.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailjet3.js

Tip NPM Dependency Status

Fork of node-mailjet that supports API v3.

Installation

npm install mailjet3

Usage

Load the mailjet module with:

var Mailjet = require('mailjet3')

Initialize mailjet with your API keys:

var mj = new Mailjet('API_KEY', 'API_SECRET')

You can then make requests like this :

mj.request(APIMethod, type, params, successCb, errorCb)

There is a short-hand method for sending transactional emails:

mj.send(params, successCb, errorCb)

License

mailjet.js is licensed under the MIT License. See LICENSE.