ValidateAddress Function in ASPEmail

Legacy ASP.NET Web Hosting Starting at $7.95

ValidateAddress (Address As String) As Integer (ASPEmail Version 5.0.0.4)

This performs the syntactic validation of a specified email address. You can utilize this method on a user-specified address to make sure its syntax is valid. This method does NOT determine if an email address actually exists. It returns the following values:

0 - Valid address
1 - Too short
2 - Too long (greater than 256 chars)
3 - No @ character
4 - Nothing before @
5 - Characters before @ must be a-z A-Z 0-9 ' _ . -
6 - No dots after @
7 - Zero-length subdomain
8 - Characters in a subdomain must be a-z A-Z 0-9 -
9 - Characters in a top-level subdomain must be a-z A-Z 0-9
10 - Top-level subdomain must be at least 2 characters long
11 - Name part of address cannot start or end with a dot.

Add Feedback