Shouldn't $body be ob_get_clean(); ?