Please Follow the links for setup local email server on your machine.
Linux :
http://wiki.centos.org/HowTos/postfix
Wnidows :
http://www.vsysad.com/2014/09/setup-and-configure-smtp-server-on-windows-server-2012/