PHP Form Mailer doesn't work?

I am a complete newbie at this, but I really want to make it work.
SO I used the PHP Form Mailer Tutorial at the Kirupa website to make a form. I edited it according to my needs and set it up to run with WAMP to test it. But, when i fill in the form and submit it, it doesnt mail me the form.

Can anyone help?

EDIT: this is the error i get when i try to run it in WAMP:

Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in <file location on disk> on line 26