Start Code for validating email address in c

Code for validating email address in c

method does not verify that the top-level domain name is a valid domain name listed at the IANA Root Zone Database, which would require a look-up operation. Is Null Or Empty(str In) Then Return False ' Use Idn Mapping class to convert Unicode domain names.

If the user is going to be entering an e-mail address in, it should be his or her responsibility to ensure that it was entered in correctly ( You can try one of these free email validation techniques - to track bounced emails, you can build a console app using an open source POP3 library like Indy.

Sockets to download messages - You can then parse the messages to look for bounced emails using a free Mime parsing library like C# Mime Parser, Mime Kit or Sharp Mime Tools - Kit - that some of the components mentioned above haven't been updated in a while, so you'll have to try them out to verify if they work well.

For example: you can use this pattern to verify if the email address has valid format.