我想知道航空公司、邀请人和大型事件如何创建专门针对该事件格式化的电子邮件,如下所示:
并且还会自动将此事件添加到 Google 日历中。
任何人都可以指导我有关所用方法的任何教程或解释吗? 我无休无止地寻找,却一无所获。
最佳答案
您所描述的是在电子邮件中添加一些标记的结果:https://developers.google.com/gmail/markup/getting-started
示例事件:
<script type="application/ld+json"> [ {
"@context": "http://schema.org/",
"@type": "EventReservation",
"reservationnumber": "9454as",
"reservationfor": {
"image": "whatever image url",
"name": "My event",
"@type": "Event",
"enddate": "2016-01-06T20:00:00+00:00",
"startdate": "2016-01-06T17:00:00+00:00",
"location": {
"name": "11th Street",
"@type": "Place"
} } } ] </script>
在此之前,请确保执行此处描述的注册步骤: https://developers.google.com/gmail/markup/registering-with-google
关于email - 事件电子邮件 - 谷歌日历自动接受,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35002660/