繁体   English   中英

如何在 Node js 中编写 HTML 和 CSS 代码以将 Eamils 发送给用户

[英]How to write HTML and CSS code in Node js to Send Eamils to Users

我想使用 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 代码时,它显示了一个错误。 我怎样才能在节点 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>
`

像这样

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM