Skip to content

drewtron/MailTester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Tester

Simple API to test if an email address is valid.

Based on http://mailtester.com/

Setup

sudo apt-get update
sudo apt-get install git python-pip build-essential libssl-dev libpopt-dev

Endpoints

/diag

/check_email/<email_address>

Possible JSON responses

{'code':0, 'message': 'Unknown Exception'}
{'code':1, 'message': 'Mail server indicates this is a valid email address'}
{'code':2, 'message': 'Mail server found for domain, but the server doesn\'t allow e-mail address verification'}
{'code':3, 'message': 'Mail server found for domain, but the email address is not valid'}
{'code':4, 'message': 'Mail server not found for domain'}
{'code':5, 'message': 'DNS Lookup Timeout'}
{'code':6, 'message': 'Unable to connect to Mail Server'}

Notes

We risk spamming smtp servers with these requests which can lead to getting ourselves added to spam lists. This will make the method of testing ineffective.

Example Emails

afriedrich@glgroup.com donkernan@ymail.com - hangs/timesout on connecting to mail server stovenator@hotmail.com - server disconnects client

About

Simple API to test Email Addresses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages