Hello, How do I insert an HTML table containing the content of my list into an email?
Before I used:
{{ExportProfessionnels.join('\n', 'raison')}}
but I only have one field in my list
thanks
Hello, How do I insert an HTML table containing the content of my list into an email?
Before I used:
{{ExportProfessionnels.join('\n', 'raison')}}
but I only have one field in my list
thanks
This is how I made this:
'<tr><td>'+destination+'</td><td>'+period+'</td><td>€'+currentPrice+'</td><td style="background-color: #eaf7ea">– €'+priceChange+'</td>'
<body>
<div class="email-container">
<h1>AirBaltic Tickets Price Update</h1>
<hr class="horizontal-line">
<table>
<thead>
<tr>
<th>Destination</th>
<th>Period</th>
<th>Current Price</th>
<th>Price Change</th>
</tr>
</thead>
<tbody>
{{tableData.join('', 'rowData')}}
</tbody>
</table>
</div>
</body>
Would be interesting to see other solutions.
Thanks Notum