I am creating a web part in SharePoint Online using SPFx REACT framework and I want to open an email pop up with an HTML table in the body section of the email.
Currently, I am using mailto to open an email and I can see my HTML code in the body section of the email. Are there any ways in REACT/JavaScript/jQuery with which I can achieve this functionality?
Current code:
let mailBody = `<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>`;
location.href = `mailto:myEmailID?subject=Hello&body=${mailBody}`;