|
-
May 22nd, 2006, 08:09 AM
#1
Thread Starter
Just Married
[RESOLVED] how to validate email id
how to validate email id and web site name
-
May 22nd, 2006, 08:20 AM
#2
Lively Member
Re: how to validate email id
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.
-
May 22nd, 2006, 08:20 AM
#3
Re: how to validate email id
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
-
May 22nd, 2006, 08:20 AM
#4
Fanatic Member
Re: how to validate email id
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
-
May 22nd, 2006, 09:03 AM
#5
Lively Member
Re: how to validate 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
-
May 22nd, 2006, 11:46 PM
#6
Thread Starter
Just Married
Re: how to validate email id
-
May 23rd, 2006, 03:05 AM
#7
Fanatic Member
Re: how to validate email id
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.
-
May 23rd, 2006, 03:31 AM
#8
Lively Member
Re: how to validate email id
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
-
May 23rd, 2006, 04:20 AM
#9
Thread Starter
Just Married
Re: how to validate email id
thanks all spacially hack
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|