TaggedZi

  • Home
  • Blog
  • Gallery
  • Pro
  • Forums

RFC 2822 Email Validation Script

Email Address:
Allow Quoted Names
Allow Underscore in domain
Allow IP Domains
Verify TLD

RFC 2882 Email Validation using PHP

I had to create an email validation script for a larger project I was working on, and decided to share it with the world, rather than let it lay arround useless. I did not want to use regular expressions for this so I built a hand full of functions that perform that task.

If you are trying to perform RFC 2822 email validation please be aware that many email programs do not allow the full specification, and use their own version of the spec.

Most email hosts do not allow quoted email addresses, underscores in the domain or IP domains. But those are allowed under the full specification. I added in an additional top level domain verification, using all the recognized TLDs that are part of ICAN (and Network solutions). If you have a tld that should be recognized that isn't please let me know.

Simply entery the email address you would like to validate, and the parameters you want. And it will then click submit.

Content Copyright © 2008. Matthew Craig. | Theme Copyright © 2008. Design by Free Web Page Templates | Powered by MµCMS

XHTML | CSS