我嘗試使用 sendGrid 使用 node.js 發送電子郵件,但發送的電子郵件始終被隱藏,如下所示:

節點代碼:
const msg = {
to: '[email protected]',
from: '[email protected]',
subject: 'example: quotation email',
text: msgText,
html: "<style>.tab {padding-left: 18xp;}</style>" msgText ,
}
console.log(msg);
sendgrid
.send(msg)
.then((resp) => {
console.log('Email sent: \n', resp)
})
.catch((error) => {
console.error(error)
})
注意:訊息發送成功,當我單擊 3 個點時,訊息隨即顯示,但我想顯示它而不讓用戶做任何事情
如何讓我的電子郵件正文中的 html 電子郵件內容顯示為其他公司的做法而不被隱藏?
uj5u.com熱心網友回復:
這是 Gmail 執行緒在行動。這是因為您已經發送了一封包含該主題和內容的電子郵件,而 Gmail 正在折疊它認為過時的內容。
嘗試更改內容和主題,然后重試。它應該作業得很好。
無論哪種方式,這都不是 Sendgrid 的問題。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/496250.html
標籤:javascript 节点.js 电子邮件 html-电子邮件 发送网格
上一篇:如何洗掉文本的段落?
