Email Validator

Email Validator will check that the email address is valid, and has set up MX records which you can send email to. It does these checks the exact same way a real mail server would, taking code from the Haraka Mail Server.

Checks Performed:

  • Address parsing: Uses the standard RFC-2821 address syntax, including support for emails in angle-brackets.
  • MX Lookup: Checks that the address has MX records
  • A Lookup: If no MX records exist, checks for A records
  • Similarity: Checks if the domain is similar to popular domains (e.g. for 'hotmal.com' will suggest 'hotmail.com')

You can HTTP POST to this form and get JSON back:

curl --form "email=test@gmail.com" https://www.emailitin.com/email_validator

Try it out with this simple form:

Code Examples
var request = require('request'); // install via npm
 
request({
    url: "https://www.emailitin.com/email_validator",
    method: "POST",
    form: {email: "test@gmail.com"},
    json: true
}, function (err, res, body) {
   console.log(body);
   if (body.valid) {
       // email is valid
   }
});
require 'net/https'
require 'json'
 
uri  = URI.parse("https://www.emailitin.com/email_validator");
http = Net::HTTP.new(uri.host, uri.port);
http.use_ssl = true;
res  = http.post(uri.request_uri, URI.encode_www_form("email" => "test@gmail.com"));
 
results = JSON.parse(res.body);
if (results['valid'])
    # email is valid
end
$.getJSON("https://www.emailitin.com/email_validator?callback=?",
          { email: "test@gmail.com" })
          .done(function (data) {
              console.log(data);
              if (data.valid) {
                  // email is valid
              }
          });
{ did_you_mean: [ 'hotmail.com' ],
  address: 'test@hotmal.com',
  valid: true,
  mxs: 
   [ { priority: 0, exchange: '64.4.6.100' },
     { priority: 0, exchange: '65.55.39.10' } ],
  record_type: 'A' }