Skip to content

Javascript e-mail validation and verification! Prevent emails that bounce due to typos, invalid domain, aso. Has jQuery support!

License

Notifications You must be signed in to change notification settings

amail/Verimail.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verimail.js

Simply a kit for validating/verifying e-mails through javascript. Can prevent many common typos.

Current support:

* Syntax validation (according to RFC 822)
* IANA TLD validation
* Spelling suggestion for the most common TLDs and email domains
* Deny temporary email account domains such as mailinator.com

E.g. validating '[email protected]' will result in a typo suggestion:

Did you mean [email protected]?

jQuery Example (verimail.jquery.js)

$("input#email-address").verimail({
	messageElement: "p#status-message"
});

Example (verimail.js)

var email = "[email protected]";
var verimail = new Comfirm.AlphaMail.Verimail();

verimail.verify(email, function(status, message, suggestion){
	if(status < 0){
		// Incorrect syntax!
		if(suggestion){
			// But we might have a solution to this!
			console.log("Did you mean " + suggestion + "?");
		}
	}else{
		// Syntax looks great!
		if(suggestion){
			// But we're guessing that you misspelled something
			console.log("Did you mean " + suggestion + "?");
		}
	}
});

Who is using it?

Add yourself to the list!

  • AlphaMail (amail.io)

Like it?

Then maybe you'll like our amazing Transactional Email service.

Try AlphaMail for free at: http://amail.io/

About

Javascript e-mail validation and verification! Prevent emails that bounce due to typos, invalid domain, aso. Has jQuery support!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published