look for the following line of code:
$MailBody = $MailBody . "<html><head><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --></head><body><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" -->\r\n";
and change it to:
$MailBody = $MailBody . "<html><head></head><body>\r\n";