The sendmail server should be set up by your hosting company. The script should work as stated if you make sure that the page is named with a .php instead of a .html . If the mail server is not set up, the page will tell you as soon as you try to run the mail() function. FATAL ERROR: will be displayed on the screen.
IF you need the sendmail server, Your hosting company will have to set it up for you.