Check whether an Email Id exists or not [modified]
-
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
-
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.
Deja View - the feeling that you've seen this post before.
-
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
The only sure fire way is to send an email to the address. You can use regex to check if the address is technically valid, dns lookup to verify the domain exists and has mx records but that's about as far as you can go without sending an email.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog) -
I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.
Deja View - the feeling that you've seen this post before.
-
Pete O'Hanlon wrote:
so you can only identify a valid email by sending them a mail
Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail
J4amieC wrote:
Granted not a perfect method for numerous reasons
It would be a fair start, but as you note - not perfect.
Deja View - the feeling that you've seen this post before.
-
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM