我有一封电子邮件的以下标记:
<html>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Event",
"name": "Taco Night",
"startDate": "2015-04-18T15:30:00Z",
"endDate": "2015-04-18T16:30:00Z",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"name": "Google",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "USA"
}
},
"potentialAction": [
{
"@type": "RsvpAction",
"handler": {
"@type": "HttpActionHandler",
"url": "http://example.com/rsvp?eventId=123&value=yes"
},
"attendance": "http://schema.org/RsvpAttendance/Yes"
},
{
"@type": "RsvpAction",
"handler": {
"@type": "HttpActionHandler",
"url": "http://example.com/rsvp?eventId=123&value=no"
},
"attendance": "http://schema.org/RsvpAttendance/No"
},
{
"@type": "RsvpAction",
"handler": {
"@type": "HttpActionHandler",
"url": "http://example.com/rsvp?eventId=123&value=maybe"
},
"attendance": "http://schema.org/RsvpAttendance/Maybe"
}
]
}
</script>
<body>
HI
</body>
</html>
但是,当我使用他们的电子邮件标记测试工具时,我只收到一封纯文本邮件,其中没有任何内容,但是'HI'。我如何获得带有议程的google卡以及事件的Yes,No,Maybe按钮?
答案 0 :(得分:0)
我如何获得带有日程安排的google卡以及事件的Yes,No,Maybe按钮?
一个 RsvpAction 可用于响应来自内部的事件邀请 收件箱。收件箱通过显示详细信息来呈现此操作 事件以及由此定义的是/否/可能响应的组合 发件人。
查看官方Email Markup guide了解详情。