小编and*_*old的帖子

通过带有“&”的 sendgrid 发送模板电子邮件时出现警告

我正在 sendgrid api v3 的帮助下发送电子邮件,但收到警告/错误:

包含字符 '、" 或 & 的内容可能需要使用三个括号 {{{ content }}} 进行转义

在我的 api json 中,我添加了一个包含该&字符的链接:

{"dynamic_template_data": {"link":"...&..."}}

在我的模板中,我使用三个括号{{{ link }}}

一切都按预期进行 - 电子邮件,包括。链接已发送 - 但我总是收到警告/错误。

我错过了 json 中的某些内容吗?

sendgrid sendgrid-api-v3 sendgrid-templates

11
推荐指数
1
解决办法
4198
查看次数