如何解决如何在 Node js 中编写 HTML 和 CSS 代码以向用户发送电子邮件
我想使用 node-cron 发送电子邮件并想设置消息样式。基本上,我想向用户发送以下附件的列表。我想写这样的东西
<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>
我想为表格的这些元素设计样式。当我尝试在 Nodejs 中编写 CSS 代码时,它显示了一个错误。 我怎么能在 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>
`
像这样
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。