Please Follow the links for setup local email server on your machine.

  1. Linux : http://wiki.centos.org/HowTos/postfix
  2. Wnidows : http://www.vsysad.com/2014/09/setup-and-configure-smtp-server-on-windows-server-2012/