I want to show a table in my email list of objets in SendGrid. The table should look like following. There are dynamic number of rows in the table. How should I send the data from java code or design it in SendGrid?
<html>
<table style="width: 1px; height: 1px;" border="1">
<tbody>
<tr>
<td>heading1</td>
<td>heading2</td>
<td>heading3</td>
<td>heading4</td>
<td>heading5</td>
<td>heading6</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</html>
Sendgrid doesn't provide a way to show table on the mail. I created an excel file and added it to the attachment.