There is way to detect whether an email id is well-formed or not. Example [email protected] is a well-formed email address, but this may or may not be valid email account.
def.com here).If it is not valid then if we sent mail, we will get some delivery failure mail, maybe in some hours after sending the email.
I want to implement a similar concept. I want to verify if an email id belongs to a valid account, which will find out whether the account exists or not.
How to achieve it?
I think a better approach is to send an email and verify it the user activates the account.
And them he's verified.
You can check your database, every x days, and remove all the old entries, like one that weren't validated more than one week ago.
Unfortunately, you cannot know if it's valid until you actually send the message, as it's the remote server that decides whether or not the address is valid. All your local computer knows how to do is route the message to the appropriate domain for processing.
You could check to see if the domain name resolves if you wanted, but you still wont know if the exact email address exists.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With