123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Internet-Marketing >> View Article

Email Validation In Node.js

Profile Picture
By Author: Camimi Morales
Total Articles: 18
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Intro
MailboxValidator is an email validation service to clean mailing lists of stale and unreachable emails. There are 2 ways to utilize the MailboxValidator service. The easiest way is to subscribe for a BULK plan. This allows a user to just simply upload a text or CSV file containing their email list to our website. Then just wait for the validation process to complete. Advanced users will prefer to use our REST-based API instead. It can be used to query a single email address to check its validity. The results are returned almost immediately.

How can MailboxValidator help marketers and developers?

At first glance, you might think that using regular expressions can easily detect invalid email addresses. Unfortunately, that is wrong. First of all, regular expression only checks the syntax of the email address. It does not tell you whether that email address actually exists. Nor can it detect whether the email domain is non-existent.

MailboxValidator, on the other hand, performs checks on the email address syntax. Next, it will check for the existence of the email domain. Following that, it will check ...
... if the email address actually exists. Last but not least, it will let you know if the email address came from a free or disposable email provider.

All of these validation features are geared towards marketers and developers to help them reduce their bounce rate, thus helping them to avoid being blacklisted.

Easy integration with multiple SDKs and plugins

We believe that email validation should be easy enough for anyone to use. Hence, we’ve created a bunch of SDKs and extensions to help you get started. If you’re using an Email Sending Provider (ESP) like MailChimp, Aweber, Sendgrid, HubSpot and so on, we’ve got you covered with our list of integrations.

Let’s take a look at email validation in Node.js

Node.js developers will be glad to know we have an email validation module ready for use. Just install the module using the below command.

npm install mailboxvalidator-nodejs

You’ll also need the MailboxValidator API key. If you don’t have one, you can subscribe for one at https://www.mailboxvalidator.com/plans?utm_source=123articleonline&utm_medium=listing&utm_campaign=article&utm_term=article-sharing#api

Usage is also very straightforward as the example below shows. Just remember to edit the code and put in your API key.

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("email_address: " + data.email_address);
console.log("domain: " + data.domain);
console.log("is_free: " + data.is_free);
console.log("is_syntax: " + data.is_syntax);
console.log("is_domain: " + data.is_domain);
console.log("is_smtp: " + data.is_smtp);
console.log("is_verified: " + data.is_verified);
console.log("is_server_down: " + data.is_server_down);
console.log("is_greylisted: " + data.is_greylisted);
console.log("is_disposable: " + data.is_disposable);
console.log("is_suppressed: " + data.is_suppressed);
console.log("is_role: " + data.is_role);
console.log("is_high_risk: " + data.is_high_risk);
console.log("is_catchall: " + data.is_catchall);
console.log("mailboxvalidator_score: " + data.mailboxvalidator_score);
console.log("time_taken: " + data.time_taken);
console.log("status: " + data.status);
console.log("credits_available: " + data.credits_available);
console.log("error_code: " + data.error_code);
console.log("error_message: " + data.error_message);
}
}

How to interpret the result fields?
email_address
The input email address.

domain
The domain of the email address.

is_free
Whether the email address is from a free email provider like Gmail or Hotmail.
Return values: True, False

is_syntax
Whether the email address is syntactically correct.
Return values: True, False

is_domain
Whether the email address has a valid MX record in its DNS entries.
Return values: True, False (- means not applicable)

is_smtp
Whether the mail servers specified in the MX records are responding to connections.
Return values: True, False (- means not applicable)

is_verified
Whether the mail server confirms that the email address actually exists.
Return values: True, False (- means not applicable)

is_server_down
Whether the mail server is currently down or unresponsive.
Return values: True, False (- means not applicable)

is_greylisted
Whether the mail server employs greylisting where an email has to be sent a second time at a later time.
Return values: True, False (- means not applicable)

is_disposable
Whether the email address is a temporary one from a disposable email provider.
Return values: True, False (- means not applicable)

is_suppressed
Whether the email address is in our blacklist.
Return values: True, False (- means not applicable)

is_role
Whether the email address is a role-based email address like admin@example.net or webmaster@example.net.
Return values: True, False (- means not applicable)

is_high_risk
Whether the email address contains high risk keywords.
Return values: True, False (- means not applicable)

is_catchall
Whether the email address is a catch-all address.
Return values: True, False, Unknown (- means not applicable)

mailboxvalidator_score
Email address reputation score.
Score > 0.70 means good; score > 0.40 means fair; score

Total Views: 322Word Count: 748See All articles From Author

Add Comment

Internet Marketing Articles

1. How Ai Is Changing Seo Rankings And What You Should Do About It
Author: JAKSoftware

2. Why Should You Engage The Seo Marketing Firm In Auckland?
Author: Top Rank Digital

3. What Digital-first Strategies Mean For Today’s Female Entrepreneurs?
Author: Lee Wood

4. Discovering The Top Crypto Presales & Fresh Icos In 2025
Author: Crypto Presale

5. How To Rank #1 On Google In 2025 – Tips From The Best Seo Company In Lucknow
Author: Apple And Oranges Digital Marketing agency

6. Cgi Ads In 2025: How They’re Reshaping Viral Marketing
Author: BigWig Digital

7. Meta Ads For Business: How To Drive Growth And Maximize Roi
Author: BigWig Digital

8. How To Download Instagram Reels & Photos For Free
Author: Tim Craig

9. How Google Ai Overviews Are Shifting Pediatric Dentist Seo Focus
Author: Expert Dental SEO Company

10. Market Strategically: Content Marketing Strategy 2025
Author: name2brands

11. Itworksolution – Reliable It Services That Drive Business Growth In 2025
Author: itworksolution

12. Google Ads Algorithm Change Impacts Orthodontist Ppc Services In 2025!
Author: Expert Dental SEO Company

13. E-commerce Vs E-marketing: Which Drives Real Growth In The Digital Era?
Author: Marketing Godfather

14. Sanbrains: Best Digital Marketing Agency In Hyderabad
Author: SanBrains

15. Discover The India Cheapest Smm Panel For Instagram Growth In 2025
Author: yoyomedia

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: