SendGrid - 如何从使用动态模板发送的某些电子邮件中删除取消订阅 link

SendGrid - How to remove unsubscribe link from some emails sent using Dynamic template

我在 SendGrid 中启用了订阅跟踪并将内容设置为 HTML 正文。因此,使用动态 templateId 以编程方式(在 Node.js 中)发送的每封电子邮件都将取消订阅 link.

但我们希望一个动态模板在发送电子邮件时不附加退订 link。该模板没有 "Unsubscribe" 模块,但取消订阅 link 仍会出现在邮件中。

如何防止一个动态模板附加取消订阅link?

在发送电子邮件函数中添加此参数将使其按预期工作 -

 tracking_settings: {
   subscription_tracking: {
     enable: false
   }
 }