【问题标题】:Mandrill: Can you make template_content null?Mandrill:你能让 template_content 为空吗?
【发布时间】:2015-08-29 01:39:15
【问题描述】:

我正在尝试使用 Messages/send-template.json API 通过 mandrill 发送模板化电子邮件。此 API 要求在您提供的 JSON 中注入 template_content 作为“名称”和“内容”。然而,在我的模板中,我不需要任何注入的内容。是否可以在这些字段中传递空值并仍然使用模板?

【问题讨论】:

    标签: json mailchimp mandrill


    【解决方案1】:

    我最终在这里所做的只是将空字符串传递给“名称”和“内容”,例如:

    "template_content": [
    {
    "name": "",
    "content": "",
    }
    ]
    

    【讨论】:

      猜你喜欢
      • 2011-07-09
      • 2021-07-07
      • 1970-01-01
      • 1970-01-01
      • 2018-10-06
      • 1970-01-01
      • 1970-01-01
      • 2017-04-26
      • 1970-01-01
      相关资源
      最近更新 更多