we can also use text_io package in d2k forms to create a flat text file with .html extension
and can send the data with html tags
for example
for the tables we can use
<table> in starting
and <tr> for each row
and <td> for each table data
then in end </table> for end of table
after that
</html> tag for end of html.