【问题标题】:Google Markup not seen in e-mail电子邮件中未显示 Google 标记
【发布时间】:2017-03-28 17:12:34
【问题描述】:

我使用 Google 脚本测试发送标记并找到作品, 如果通过 Google SMTP 从我的 Gmail 帐户向我的 Gmail 帐户发送相同的模板,ld+json 看不到。

我的模板是:

<!DOCTYPE html>
<html>
<head>
    <title>Prenotazine TiPrenota</title>
    <meta charset="UTF-8">
    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "EventReservation",
      "reservationNumber": "5aa46b79-140d-491e-a1db-568ec1c423bd",
      "reservationStatus": "http://schema.org/Confirmed",
      "underName": {
        "@type": "Person",
        "name": "Savio Capannini"
      },
      "reservationFor": {
        "@type": "Event",
        "name": "SAN MARINO ADVENTURES SRL - COE 21269",
        "startDate": "2017-03-27T12:30:00",
        "location": {
          "@type": "Place",
          "name": "SAN MARINO ADVENTURES SRL - COE 21269",
          "address": {
            "@type": "PostalAddress",
            "streetAddress": "San Marino Adventure Parco Montecerreto, San Marino (RSM)"
          },
          "geo": {
            "@type": "GeoCoordinates",
            "latitude": "44,490501",
            "longitude": "12,281881"
          }
        },
        "performer":"Reservation"
      },
      "modifyReservationUrl": "https://www.mysite.it/?token=5aa46b79-140d-491e-a1db-568ec1c423bd"
    }
    </script>
</head>
<body>
    Testo emeil
</body>
</html>

我是否需要 G Suite 帐户才能尝试此操作? 为什么看不到标记? 问题出在哪里?

请帮忙! 谢谢。

【问题讨论】:

    标签: google-schemas


    【解决方案1】:

    您可以参考这个SO post。在正确向其他用户发送电子邮件之前,请确保您 registered with Google。另外请注意,电子邮件必须是authenticated via DKIM or SPF。如果您使用的是 Google SMTP 中继,则必须使用类似于 this: v=spf1 include:_spf.google.com ~all 的 SPF 记录。

    这是另一个可能有帮助的帖子:Gmail Email Markup not Working

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-03
      • 1970-01-01
      • 2015-11-02
      • 1970-01-01
      • 2019-06-16
      • 1970-01-01
      • 2011-10-17
      • 1970-01-01
      相关资源
      最近更新 更多