Processing list of objets in SendGrid

81 Views Asked by At

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>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</html>

1

There are 1 best solutions below

0
On

Sendgrid doesn't provide a way to show table on the mail. I created an excel file and added it to the attachment.