Code Samples
The product includes numerous VB.NET, C# and ASP.NET sample applications. All
samples include complete source code. For more detailed sample code please
refer to the sample applications.
Validating an Email Address
Listing 1 demonstrates using the synchronous Check
method to perform a complete check on an email address including
verifying the domain name with a DNS server and verifying the email
address with the SMTP server.
' Check the supplied email address for validity
Dim emailAddressChecker As EmailAddressChecker
Dim result As EmailCheckResult
emailAddressChecker.EmailCheck = EmailCheck.User
result = emailAddressChecker.Check(emailAddress)
|
Listing 1 Validating an email address
|