My guess is that when you pasted the error reporting code into the page, you left a blank space between code blocks.
see this post for details on the headers already sent error:
showthread.php?t=19285
can you send a copy of the contactMail.php file so i can examine the code.