【问题标题】:Sendgrid v3 template replace stringSendgrid v3 模板替换字符串
【发布时间】:2016-07-07 12:10:48
【问题描述】:

我正在尝试替换模板中的字符串

为此,我做了以下操作:

section = helper.Section("%course_name%", "Tekst");
mail.addSection(section);
section = helper.Section("%user%", "Textforasubstitutiontagofsection2");
mail.addSection(section);

但是,当我收到邮件时,字符串不会被替换,并且如上图所示

谁能告诉我我做错了什么?

【问题讨论】:

    标签: node.js sendgrid


    【解决方案1】:

    在这种情况下,您希望使用 substitutions 而不是 sectionssection 标签用于封装substitution 标签组。 Docs for more info.

    【讨论】:

      猜你喜欢
      • 2016-11-10
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      • 2014-09-10
      • 2023-03-30
      • 1970-01-01
      • 2018-09-16
      相关资源
      最近更新 更多