After struggling for hours, I was able to configure my localhost to send email. This was working untill I upgraded by xampp to 1.8 on win 7 Pro.
So to help someone, I am listing the steps that I followed
Step – 1: Open php.ini and make some changes to [mail function]. The php.ini is under XAMPP\php\php.ini
More