2016-05-16 91 views
1

我正尝试使用RSVP操作发送事件,但Gmail收件箱中没有显示任何按钮。 我想这个代码:Gmail RSVP操作不起作用

<div itemscope itemtype="http://schema.org/Event"> 
    <meta itemprop="name" content="Taco Night"/> 
    <meta itemprop="startDate" content="2015-04-18T15:30:00Z"/> 
    <meta itemprop="endDate" content="2015-04-18T16:30:00Z"/> 
    <div itemprop="location" itemscope itemtype="http://schema.org/Place"> 
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> 
     <meta itemprop="name" content="Google"/> 
     <meta itemprop="streetAddress" content="24 Willie Mays Plaza"/> 
     <meta itemprop="addressLocality" content="San Francisco"/> 
     <meta itemprop="addressRegion" content="CA"/> 
     <meta itemprop="postalCode" content="94107"/> 
     <meta itemprop="addressCountry" content="USA"/> 
    </div> 
    </div> 
    <div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction"> 
    <div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> 
     <link itemprop="url" href="http://example.com/rsvp?eventId=123&value=yes"/> 
    </div> 
    <link itemprop="attendance" href="http://schema.org/RsvpAttendance/Yes"/> 
    </div> 
    <div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction"> 
    <div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> 
     <link itemprop="url" href="http://example.com/rsvp?eventId=123&value=no"/> 
    </div> 
    <link itemprop="attendance" href="http://schema.org/RsvpAttendance/No"/> 
    </div> 
    <div itemprop="potentialAction" itemscope itemtype="http://schema.org/RsvpAction"> 
    <div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> 
     <link itemprop="url" href="http://example.com/rsvp?eventId=123&value=maybe"/> 
    </div> 
    <link itemprop="attendance" href="http://schema.org/RsvpAttendance/Maybe"/> 
    </div> 
</div> 

IT方面相同教程这里:https://developers.google.com/gmail/markup/reference/rsvp-action。我通过Google Code脚本将它发送给自己的电子邮件[email protected]。有人知道为什么它不起作用吗?

回答

1

@MartinHromádko,为了它的工作,你将不得不使用未来的startDate。尝试改变你的startDate和endDate,RSVP行动应该为你工作。

+0

谢谢,我没有注意到。现在它工作正常。 –