Email Validation

Email validation confirms that the provided email address is in a valid format and the email address is not associated with a disposable email service. Validations can be done using the Mailsac website or REST API.

Additional information about the REST API endpoint for Email Validation is available in the REST API Documentation. The REST API endpoint supports bulk validation of up to 50 email addresses.

Examples

../../_images/website_email_validation.gif

Email validation using the Mailsac website

Validate email address
curl -H 'Mailsac-Key: YOUR_API_KEY_HERE' https://mailsac.com/api/validations/addresses/jimmy@mailsac.com

# Output from curl
{
  "email": "jimmy@mailsac.com",
  "domain": "mailsac.com",
  "isValidFormat": true,
  "local": "jimmy",
  "isDisposable": true,
  "disposableDomains": [
    "ledoktre.com",
    "mailsac.com",
    "totalvista.com",
    "slothmail.net"
  ],
  "aliases": [
    "ledoktre.com",
    "mailsac.com",
    "totalvista.com",
    "52.41.136.113",
    "slothmail.net",
    "aiwa.fm",
    "tztmax.com",
    "cs.msdc.co",
    "zeie.xyz",
    "yinpinpin.club",
    "jadeant.top",
    "dylans.email",
    "msdc.co"
  ]
}
Validate email address
const superagent = require('superagent')

superagent
  .get('https://mailsac.com/api/validations/addresses/jimmy@mailsac.com')
  .set('Mailsac-Key', 'YOUR_API_KEY_HERE')
  .then((validation) => {
      console.log(validation.body)
  })
  .catch(err => {
      console.log(err.message)
  })
/*
{
  email: 'jimmy@mailsac.com',
  domain: 'mailsac.com',
  isValidFormat: true,
  local: 'jimmy',
  isDisposable: true,
  disposableDomains: [ 'ledoktre.com', 'mailsac.com', 'totalvista.com', 'slothmail.net' ],
  aliases: [
    'ledoktre.com',   'mailsac.com',
    'totalvista.com', '52.41.136.113',
    'slothmail.net',  'aiwa.fm',
    'tztmax.com',     'cs.msdc.co',
    'zeie.xyz',       'yinpinpin.club',
    'jadeant.top',    'dylans.email',
    'msdc.co'
  ]
}
*/
Validate email address
import requests
from pprint import pprint

headers = {'Mailsac-Key': 'YOUR_API_KEY_HERE'}
url = 'https://mailsac.com/api/validations/addresses/jimmy@mailsac.com'

r = requests.get(url, headers=headers)
pprint(r.json())
"""
{'aliases': ['ledoktre.com',
             'totalvista.com',
             '52.41.136.113',
             'mailsac.com',
             'slothmail.net',
             'tztmax.com',
             'aiwa.fm',
             'zeie.xyz',
             'yinpinpin.club',
             'beautyoa.com',
             'lqpakswoowkw729292929292929.msdc.co'],
 'disposableDomains': ['ledoktre.com',
                       'totalvista.com',
                       'mailsac.com',
                       'slothmail.net'],
 'domain': 'mailsac.com',
 'email': 'jimmy@mailsac.com',
 'isDisposable': True,
 'isValidFormat': True,
 'local': 'jimmy'}
 """"