$nomeFile? Dovrebbe essere il contenuto, no?

Prova così

Codice PHP:
'<html><head><title></title></head><body>'.$body.'</body></html>'