If you want to sent mail from local host then XAMPP comes with a mail server called
Mercury
.
In your XAMPP folder find the folder Mercury open that and open the Mercury.exe.
Then follow this
http://www.danieltmurphy.com/setting-up-mercury-smtp/[
^]
Open Xampp control panel, check the Mercury SVC checkbox and click start.
Important Point: Though you can send mails from local server. It is not desired. Because
1) Many other receiver mail servers block mails arising from unknown host as a precaution of spamming
2) When you move this to a production server you have to reconfigure everything.
So better advice is use the Mail server available with your expected hosting domain.