簡體   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