You will need to have an email server installed on your machine for email scripts to work.
I downloaded a free SMTP server from: http://www.postcastserver.com/
I am currently running Windose XP Pro and it works great. I only use it for testing purposes, because a lot of ISPs (including mine) block outgoing emails because of spam.
In my case I configured the server to 'catch' the out going emails, that way I can test my scripts and see how the generated email looks.
Hope this helps.
Itshim