how to validate email id and web site name
Printable View
how to validate email id and web site name
Best way to validate an email address would be to read in the address to an array, then step through the characters ensuring there is
1 or more chars followed by '@' followed by 1 or more chars followed by '.' followed by 1 or more chars. Actually enuring the mailbox is valid may be harder.
You can check to see if it is in a valid format, but you won't be able to verify that it actually does exist.
Have a look here
I would send an email verification mail to the address with a random number in it and then ask them to enter the random ID into the program to validate the email id
A verification email would be a good way to check an acount exists, you just need a way to generate verifiable codes. As for the web site, maybe you could connect to and try to recover some bytes of the homepage (a simple GET command for the index page) - if you get anything returned other than a 404 you can assume it exists.
HTH
any code
I think most people would help you with code if you tried it on your own and then posted problems that you encountered, rather than expecting others to code it for you.
If you want code for something specific then ask & show us what you've tried and I would be happy to help.
You could use regul.ar expressiosn to validate the email address
http://visualbasic.about.com/od/usin...l/blregexa.htm
http://www.regular-expressions.info/dotnet.html
And maybe the browser object to connect to the site, havnt used this object beofre , maybe someone else can provide you some code
hth
thanks all spacially hack