I'd like to know if chilkat has any class/method to validate the address, for example:
kkk email@example.com <= should return false for validation firstname.lastname@example.org <= should return true çççemail@example.com <= should return false
No. See the following: http://www.chilkatforum.com/questions/1394/validate-email-addresses
Perfect email address validation is impossible. Some people want syntactic validation, but as Tracy indicated in the link above, there is really no way to do that because there are situations where the "email address" could be a distribution list, an x400 email address, etc. Maybe your app just wants to make sure there's an "@" symbol followed by what looks like a domain..
The other validation is when you contact the SMTP server that owns the email address and you begin an SMTP session and issue the "RCPT TO" command -- to see how the SMTP server responds. For example, maybe you contact smtp.xyz.com for email addresses ending in "xyz.com". The smtp.xyz.com can only know about the email accounts under its control. smtp.xyz.com would know nothing about gmail.com email addresses, or chilkatsoft.com email addresses. Furthermore, there are two problems with trying to validate an email address in this way:
Basically, for email address validation, my answer is: fuggedaboutit
Have a process in place to handle the NDRs (bounce messages) to update your lists.
I just want to validade the address, not againts the servers.
The's so many functions on the web and regex's for it, but all fail some stuff. For example there's the .net way, which fails for me, even that is valid, that is allowing spaces in the local part. MS Way:
Dim mailAddress As MailAddress Try mailAddress = New MailAddress("testing@firstname.lastname@example.org") Catch ex As Exception 'Invalid email End Try