简体   繁体   English

sendGrid 发送的电子邮件内容被隐藏

[英]email content sent by sendGrid is hidden

I try to send email with node.js by using sendGrid but the email sent always being hidden as shown:我尝试使用 sendGrid 使用 node.js 发送电子邮件,但发送的电子邮件始终被隐藏,如下所示:

在此处输入图像描述

nodejs code:节点代码:

 const msg = {
     to: 'example@gmail.com',
     from: 'example@example.app',
     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)
 })

NOTE: the message sent successfully and when I click the 3 dots the message shows then, but I want to shows it without let the user to do anything注意:消息发送成功,当我单击 3 个点时,消息会显示,但我想显示它而不让用户做任何事情

How can I let my html email content in emails body appears as how other companies did without being hidden?如何让我的电子邮件正文中的 html 电子邮件内容显示为其他公司的做法而不被隐藏?

This is Gmails threading in action.这是 Gmail 线程在行动。 It's because you already sent an e-mail with that subject and content, and Gmail is collapsing content which it thinks is old.这是因为您已经发送了一封包含该主题和内容的电子邮件,而 Gmail 正在折叠它认为过时的内容。

Try changing the content, and the subject, and try again.尝试更改内容和主题,然后重试。 It should work just fine.它应该工作得很好。

Either way, it's not a Sendgrid issue.无论哪种方式,这都不是 Sendgrid 的问题。

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

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