How to write excel data in outlook mail?

can someone please share a better example for this?

I want to add the html table within an outlook template. I can use the above code to derive the html table, but having issues while using it within the template.