Hi Dan,
Unfortunately I don't have the time at present to debug this for you. Have you tried the following?
- Echo $html to see what it's generating?
- Determined if the page is coming back with a 500 Internal Server Error
- Enabled full error reporting for that page to see any errors?
- Checked the mail function - http://uk.php.net/manual/en/function.mail.php - a quick look here would tell you i messed up the syntax od the mail function. Again, because I'm pretty much doing this from memory, so you'll need to do some error checking before it works correctly.