Sounds like you are a PHP beginner. You might be better off looking at some PHP tutorials. For sending mail, try
php tutorial send mail. And there are millions of PHP tutorials, google for some. Once you have a little familiarity with PHP and have specific questions, you can come back and ask.
And yes, WAMP Server is a decent package to get started with PHP (though I usually install all of the components separately.)