First, you have to edit you PHP.INI: Open the file in an editor and search for "[mail function]". You should find something like the following:
[mail function]
SMTP = ;for win32 only
sendmail_from = me@localhost.com
sendmail_path =
Now, change the SMTP line, so that it points to a SMTP server accessible from you computer. You usually have two options:
1) Point it to the SMTP server of your regular ISP. This is viable if you have a permanent connection to the Internet (ADSL or something like that)
Your SMTP line should look something like the following:
SMTP = smtp.your-isp.net
where smtp.your-isp.net is the domain name of the SMTP server at your regular ISP.
2) Install an SMTP server on your local machine, and change the SMTP line to the following:
SMTP = localhost
or
SMTP = 127.0.0.1
Now, the tricky part here is to install and configure a local SMTP server, which can be a bit daunting. I don't know the programs you mention, but I use the excellent, if somewhat hairy, Mercury system (http://pmail.com).