Use the code you posted.. and replace
if ($HTTP_POST_VARS['name'] != '0') {
mail($HTTP_POST_VARS['name'], $HTTP_POST_VARS['title'], $HTTP_POST_VARS['message']);
}
with
if(!empty($HTTP_POST_VARS['name']) && !empty($HTTP_POST_VARS['title']) && !empty($HTTP_POST_VARS['message'])) {
mail($HTTP_POST_VARS['name'], $HTTP_POST_VARS['title'], $HTTP_POST_VARS['message']);
}
All that does is stop ppl from sending emails with empty content. The other stuff I changed was just to make it easier on the eye. Btw if your server's php is up to do, you should use $_POST and not $HTTP_POST_VARS 🙂.