Sometimes network/web application developer need a local mail server to test their application. There are some mail server applications that can be used in Windows. One of simple mail server for Windows is hMailServer. You can download hMailServer here. It can work in Windows 8. Another preparation before you run this mail server you should install database server. It can be a Microsoft SQL, MySql, or PostgreSql server.
These are some steps to setup hMailServer for local mail server.