This is excellent that you have got this working, but the code you posted will certainly cause validation errors if not runtime errors. Zen Cart automatically sends all of these tags
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>


<body>
(and matching closing tags)
and including them in file content will duplicate them, which is not good.