I want to check the email address is exist or not but when I input email address and run the code it show an exception which is :
"An exception of type 'System.Net.Sockets.SocketException' occurred in System.dll but was not handled in user code"
How to solve this error can anyone help me please.
Here is my code:
'***Internal variable
Dim email As String = EmailAddress.ToString() 'store the emailAddress in another variable
Dim emailDomain() As String = email.Split("@") 'For getting the email domain part first index
Dim emailDomainName As String = emailDomain(1)
'email address syntax for matching
Dim matchEmailPattern As String = "^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))" +
"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-\w]*[0 ...
Go to the complete details ...