2

我尝试从以下消息发送电子邮件x@gmail.comx@gmail.com来自https://developers.google.com/gmail/schemas/embedding-schemas-in-emails):

Return-Path: <testing.schema@gmail.com>
Received: from ns398878.ovh.net ([2001:41d0:8:54ab::1])
        by mx.google.com with ESMTPSA id ei6sm12344329wid.11.1969.12.31.16.00.00
        (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 29 Aug 2013 06:10:15 -0700 (PDT)
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: None
From: automat <testing.schema@gmail.com>
To: testingschema@gmail.com
Date: Thu, 29 Aug 2013 13:10:15 -0000
Message-ID: <20130829131015.29363.95092@ns398878.ovh.net>


<html>
  <body>
    <script type="application/ld+json">
    {
      "@context":             "http://schema.org",
      "@type":                "EventReservation",
      "reservationNumber":    "IO12345",
      "underName": "John Smith",
      "reservationFor": {
        "@type": "Event",
        "name":               "Google I/O 2013",
        "startDate":          "2013-05-15T08:30:00-08:00",
        "location":           "Moscone Center, 800 Howard St., San Francisco, CA 94103"
      }
    }
    </script>
    <p>
      Dear John, thanks for booking your Google I/O ticket with us.
    </p>
    <p>
      BOOKING DETAILS<br/>
      Reservation number: IO12345<br/>
      Order for: John Smith<br/>
      Event: Google I/O 2013<br/>
      Start time: May 15th 2013 8:00am PST<br/>
      Venue: Moscone Center, 800 Howard St., San Francisco, CA 94103<br/>
    </p>
  </body>
</html>

我想我所做的一切都正确,但收件箱中没有操作按钮。

4

2 回答 2

2

我认为您需要使用 Google Apps 脚本进行测试。 https://developers.google.com/gmail/actions/apps-script-tutorial

我一直在尝试使用 SMTP 客户端向自己发送带有 schema.org 标记的电子邮件,但没有任何成功,但这对我来说是开箱即用的。

于 2013-09-18T08:16:22.230 回答
0

It seems, that Event Reservations work only for Google Now. As Google doc says

Gmail supports 4 types of actions and 1 interactive card:

RSVP Action for events

Review Action for restaurants, movies, products and services

One-click Action for just about anything that can be performed with a single click

Go-to Action for more complex interactions

Flight interactive cards

As you see nothing is said about event reservations.

Moreover if you just send test email with event reservation example (from doc) you'll get no action button as well.

But Google Now has special card for this case (see doc):

After an email confirming an event booking:

enter image description here

于 2013-08-29T18:48:13.373 回答