hbattat / verifyEmail

PHP class that can be easily used to verify an email address and make sure it is valid and does exist on the mail server. For a supported option please visit the site
https://hbattat.com/verifyemail.html
Apache License 2.0
545 stars 170 forks source link

All Emails Return as Valid.. #19

Closed dmorri closed 7 years ago

dmorri commented 8 years ago

Have you had any luck getting a response back that the email is NOT VALID mailable. If I try emails I know do not exist it still comes back as Email is Valid. My research has show that trying to determine if an email is valid (user and domain...Not just domain) does not work well.

dmorri commented 8 years ago

Btw..Gmail seems to be good at allowing you to interrogate email itself (user), but yahoo does not for example or other domains I have tried.

dmorri commented 8 years ago

Any research on percentage of domains that you can successfully determine if an email really exists using this method of creating a socket (telnet) into the server and looking for a response)? Thanks!

dmorri commented 8 years ago

Here is an example dmorrixy@yahoo.com comes back valid, but it is not and if you try another program like http://www.email-validator.net/ it will tell you its rejected. So something is missing.

hbattat commented 8 years ago

From what I have researched there is no way to know from the server if the email is valid or not for servers that choose to return "valid" all the time.

Yahoo seems to be the biggest one out there. http://www.email-validator.net/ might be doing something special to validate.

I have added a special function to validate yahoo.com accounts. It is a hacky way and I'll be testing for sometime before it is definite. (Please see the last commit I made)

dmorri commented 8 years ago

Cool. It seems that invalid YAHOO.com emails still come back valid though. :-(

hbattat commented 8 years ago

I don't know what you are doing buddy, working fine for me, so if you cannot share more details I cannot help :(