pass variables to sendgrid template code example
Example: sendgrid iterate object purchase order
{{#each attendee}}
<table style="border: 1px solid #ccc;
box-shadow: 0 0 3px #000; font-size: 13px; font-weight: 600">
<tr>
<td style="width:120px;">Attendee Name</td>
<td>:</td>
<td>{{attendeeName}}</td>
</tr>
<tr>
<td style="width:120px;">Email</td>
<td>:</td>
<td>{{attendeeEmail}}</td>
</tr>
<tr>
<td style="width:120px;">Phone</td>
<td>:</td>
<td>{{attendeePhone}}</td>
</tr>
</table>
{{/each}}