I want to send an email with dynamic columns in the table. How to do it in html code ?
Below is the static html code that is used for sending emails with hard coded column headers. I want that to be kept dynamic.
"
|
Eoscar Password Reset Process Status
|
|
<table>
<table style='padding:.75pt .75pt .75pt .75pt;'>
<style>
table, th, td {
border: 1px solid black;
border-collapse:collapse;
}
<tr>
<th style=background:steelblue> Application_Name </th>
<th style=background:steelblue> UserName </th>
<th style=background:steelblue> Eoscar_Update </th>
<th style=background:steelblue> DB_Update </th>
</tr>
{{APPDetails}}
</table>
</td>
</tr>
<br/>
</tbody>
</table>
</td>
</tr>
<br/>
<tr>
<td style='border:none;background:steelblue;padding:7.5pt 7.5pt 7.5pt 7.5pt;'>
<p style='margin:0in;margin-bottom:.0001pt;font-size:16px;;text-align:center;'><span style='font-size:15px;color:#1F497D;'> </span></p>
<p style='margin:0in;margin-bottom:.0001pt;font-size:16px;;text-align:center;'><span style='font-size:15px;color:#1F497D;'> </span></p>
<p style='margin:0in;margin-bottom:.0001pt;font-size:16px;text-align:center;'><span style='color:gainsboro;'>--------------------Please do not reply to this email--------------------</span></p>
</td>
</tr>
</tbody>
</table>
</div>
" | |
Hi, you can try by adding in the headers first followed by your row values. I have attached a sample xaml, please give it a try.
Test.xaml (12.5 KB)