I think that would solve stan's problem from the last page as well. You've got
$body = blah
blah;
in there twice toward the bottom, it's gotta be once. You can do it like this:
$body = <<$featured
EOF;
But either way should work, just make sure you don't have it in there twice.