if you can't connect with the browser - do you even have an internet connection? are you able to view other sites? try using the manual setup and not automatic. since automatic will try and pre-populate the standard yahoo server info which may not work for you.
also, try a better email app - k-9 mail is free in the market. with k-9, if it still fails, you can look in the logs and see what the real issue is.