Thursday, March 05, 2009

Freeware .Net library for email address validation and related “Stuff” – DF_MailStuff

Visual Studio Gallery - DF_MailStuff

“DF_MailStuff is a freeware .NET component useful in any circumstances you need to validate/check mail address input by the user.

Do you collect Internet mail addresses or accept addresses typed into a web form? If so, you already know the problems bad mail addresses can cause. Effective validation requires an in-depth knowledge and the correct implementation of the Internet standards relating to mail addresses and delivery protocols. When you need robust validation with ease of use, our library delivers advanced capabilities through its object oriented interface. With just 2 lines of code, you can check the syntax, domain, and user name of any mail address.

The library is ready for immediate use, has no external dependencies, and can be incorporated in to your new or existing scripts in minutes. Using the library you can:

Specify the validation level to perform on any query
Perform full syntax and several rules checking of any address based on current Internet standards.
Quickly identify invalid top level domains, private, and unreachable domains.
Determine if the specified mail address is from a well known free email domain.
Issue real time DNS queries to ensure the domain exists and retrieve the MX records pointing to its mail servers.
Issue real time SMTP requests to contact the domain's mail servers and see if they will accept mail to the address.
Issue real time WhoIs requests
Uses complex heuristic algorithms for catching invalid email addresses.

Bonus: extract mails addresses inside a test you pass to the library.

…” [Description Leach Level: 95%]

No doc’s or samples that I could quickly find (except for a few in the inline XML), but the the description above, and the price, was enough to catch my eye. Doing a RegEx on an email address to validate it is one thing, the provided level of validation is something completely else…

image

1 comment:

Anonymous said...

Thank you for posting this! I just downloaded this library and played with it a little. It's definitely powerful.

I found one small bug: an invalid email such as "basement.horse.@yahoo.com" will pass the syntax check even though it should fail due to the "." before the "@". I'll still use the other features of this library but will use a custom RFC822-compliant regex to validate my addresses first.