I want to send Emails using node-cron and wanted to style the message. Basically, I wanted to send user a list of things as attached below. I wanted to write something like this
<table id="schedule">
<tr>
<th>Centre Name</th>
<th>Vaccine</th>
<th>Address</th>
<th>PinCode</th>
<th>Date</th>
<th>Fee Type</th>
</tr>
</table>
And I wanted to style these elements of the table. When I tried to write CSS code in Nodejs it showed an error. How can I do that in node js.
return `
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" bgcolor="#f6f6f8" style="background-color:#eeeeee;">
Some avesome things here
</td>
</tr>
</table>
`
Like this