【发布时间】:2017-07-27 19:20:59
【问题描述】:
我有以下电子邮件标记:
<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 卡片?
【问题讨论】:
标签: email gmail html-email google-schemas