我正在尝试将以下脚本添加到Sendgrid模板中
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://watch-movies.com/watch?movieId=abc123",
"name": "Watch movie"
},
"description": "Watch the 'Avengers' movie online"
}
</script>
保存SendGrid模板时,显示“保存成功”,但实际上刷新后并未保存。我猜测SendGrid不允许在电子邮件中添加脚本。我的目的是添加Gmail动作(请参见https://developers.google.com/gmail/markup/reference/go-to-action)。