【问题标题】:Google event email not displaying action card?Google 活动电子邮件未显示操作卡?
【发布时间】: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


    【解决方案1】:

    如何获得带有议程和活动的是、否、可能按钮的 google 卡片?

    一个 RsvpAction 可用于从内部响应活动邀请 收件箱。收件箱通过显示详细信息来呈现此操作 事件和由“是/否/可能”响应定义的组合 发件人。

    查看官方Email Markup guide了解更多信息。

    【讨论】:

      猜你喜欢
      • 2022-09-26
      • 2018-11-27
      • 1970-01-01
      • 2016-03-23
      • 1970-01-01
      • 2015-11-02
      • 1970-01-01
      • 1970-01-01
      • 2011-10-17
      相关资源
      最近更新 更多