I believe Mercury Mail Transport System included in all XAMPP releases will do that for you after you correctly configure it for your needs.
Their forums are here:
http://community.pmail.com/forums/default.aspx
This
search gave this
result among others but refining your search may give more help, better and more results.
The PDF manuals, which are now free can be downloaded from here:
http://community.pmail.com/files/folder ... fault.aspx
BTW cross posting in multiple forums is not best forum practice unless you post in the language specified for that forum - both your posts are in English and both have the same question = cross posting