I am trying to setup a web server with mailing capabilities (for development/testing) on localhost or Windows/Apache/PHP. How can I do that? So I can using PHP
Cygwin is a port of UNIX stuff on Windows. It has a POSIX emulation DLL, and then most Linux tools just run normally. It includes apache, and PHP. You can download the installer from Cygwin.com. You'd need to know some UNIXish stuff to get it working though.
Not sure what you want to do though, what do you mean by