6
if I'm not mistaken, the echo command will simply echo what is placed there...so for those tags to work etc, you will need to include the <html> and <body tags> etc. I would attempt this with something other than the echo command.
(sorry, I know html and smarty interaction, and little php other than top level understanding of functionality)