我try 使用node发送邮箱.js,但发送的邮箱始终处于隐藏状态,如图所示:

enter image description here

node 代码:

 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)
 })

注: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

How can I let my html email content in emails body appears as how other companies did without being hidden?

推荐答案

这是Gmail线程正在运行.这是因为你已经发送了一封主题和内容的邮箱,而Gmail正在压缩它认为旧的内容.

请try 更改内容和主题,然后重试.它应该可以正常工作.

不管怎样,这都不是Sendgrid的问题.

Javascript相关问答推荐

从实时数据库(Firebase)上的子类别读取数据

如何在Angular中插入动态组件

Rehype将hashtag呈现为URL

WebGL 2.0无符号整数输入变量

如何根据当前打开的BottomTab Screeb动态加载React组件?

使用原型判断对象是否为类的实例

如何在coCos2d-x中更正此错误

Next.js服务器端组件请求,如何发送我的cookie token?

变量在导入到Vite中的另一个js文件时成为常量.

TypeError:无法读取未定义的属性(正在读取';宽度';)

P5.js中的分形树

使用线性插值法旋转直线以查看鼠标会导致 skip

自动滚动功能在当前图像左侧显示上一张图像的一部分

我怎样才能得到一个数组的名字在另一个数组?

MongoDB通过数字或字符串过滤列表

FindByIdAndUpdate在嵌套对象中创建_id

使用Library chart.js在一个带有两个y轴的图表中绘制两个数据集

每隔一行文本段落进行镜像(Boustrophedon)

如何在不获取其子元素的文本内容的情况下获取元素的文本内容?

在给定的最小值、最大值和分辨率下计算相同分布的值