-1

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>
AnFi
  • 10,493
  • 3
  • 23
  • 47
  • Can you provide more code - what have you tried so far? What is the java code? – lloyd Mar 15 '19 at 21:14
  • I am not sure what should I send from java. Should it be string/object/json? – Astha Sharma Mar 15 '19 at 21:26
  • So you haven't tried then? it sounds like you can use a google search to resolve this. SendGrind does offer code documentation. – lloyd Mar 15 '19 at 21:40
  • I tried sending HTML but it's not allowing the large size of data I have, and didn't find any way how can sendgrid process a List or json. I have already done a lot of google search and read all the documentation. Thanks – Astha Sharma Mar 15 '19 at 23:53

1 Answers1

0

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