I'm not really a PHP programmer, but hasn't got this line
Beside that: your local mail-server is configured correctly? Are there any messages in your log-file? If you don't find your log-file, execute phpinfo(); and have a look at the values of "error_log", "display_errors" and "log_errors".
Hope that helps.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop