Skip to content
Javascript e-mail validation and verification! Prevent emails that bounce due to typos, invalid domain, aso. Has jQuery support!
CSS JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
tests
.gitattributes
.gitignore
LICENSE
README.md

README.md

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 'cool@fabeook.cmo' will result in a typo suggestion:

Did you mean cool@facebook.com?

jQuery Example (verimail.jquery.js)

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

Example (verimail.js)

var email = "cool@fabeook.cmo";
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/

You can’t perform that action at this time.