edxell / php-smtp-email-validation

Automatically exported from code.google.com/p/php-smtp-email-validation
0 stars 0 forks source link

Doesn't validate yahoo email addresses #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use any @yahoo.com addresses
2.
3.

What is the expected output? What do you see instead?
valid always

What version of the product are you using? On what operating system?
Ubuntu 9.09

Please provide any additional information below.

Original issue reported on code.google.com by zhuoyan...@gmail.com on 27 Oct 2009 at 4:44

GoogleCodeExporter commented 8 years ago
Unfortunately this is because Yahoo! always gives a positive response when you 
try to verify an 
email. 

So it is not possible to validate emails with Yahoo! over SMTP. 

There may be other solutions, but they would be out of the scope of this class. 

Original comment by buca...@gmail.com on 27 Oct 2009 at 10:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I tried to validate yahoo address but its not always a positive result. I get a 
lot
of invalid addresses.

The error codes that yahoo sends are 421 or 420 most of the time. Can these 
codes
also be considered as valid addresses? This happens most of the time only with 
yahoo
addresses.

I tested this for a single valid mail address running in a loop for 15 times, 
and
sending a request after 5 sec each. Out of these it returned 250 4 times, 421 10
times, and 420 1 time.

Original comment by ganesh.k...@gmail.com on 26 Feb 2010 at 4:31

GoogleCodeExporter commented 8 years ago
I believe the code will have to refactored to return the status code instead of 
a 
boolean. It can then be matched to an array of return values which you consider 
success 
or not, so sucess codes can be configurable. 

If you have any ideas, or other suggestion regarding this please comment.

Original comment by buca...@gmail.com on 27 Feb 2010 at 10:52

GoogleCodeExporter commented 8 years ago
I think I had already changed the code to get the smtp status codes instead of
boolean, but was wondering if its a yahoo's issue that it sends 420 or 421 or
sometimes even 250 for emails such as
sdfsdfsjzfnksfjnsdjfhsdfksdsdfsdfsdxsgs@yahoo.com, for which if I send a mail I 
get
back a mailer demon failure mail with smtp code 554 from yahoo. I know not much 
can
be done if its yahoo's issue, but just was wondering if its yahoo's issue or 
anything
could be changed.

Original comment by ganesh.k...@gmail.com on 1 Mar 2010 at 2:21