mail() does not work on windows as windows does not have a built in mail server
I use hMailer, its a windows mail server but its not simple.
The other option is to use something like phpMailer
[
www.askapache.com]
and use your yahoo/gmail/??? server to do the smtp ( sending ) part.