Please enable JavaScript in your browser.

Overview

This Node.js module provides an easy way to call the MailboxValidator API which validates if an email address is a valid one.

NOTE: An API key will be given to you when you signup for any of our plans. This module will require that API key to function.


Installation

Run npm install mailboxvalidator-nodejs in your command prompt.

Sample Codes

var mbv = require("mailboxvalidator-nodejs");

mbv.MailboxValidator_init("YOUR_API_KEY");

mbv.MailboxValidator_single_query("example@example.com", mbv_read_single);

function mbv_read_single(err, res, data) {
	if (!err && res.statusCode == 200) {
		console.log(data);
	}
}