【问题标题】:Gmail Email Markup not working with Amazon SESGmail 电子邮件标记不适用于 Amazon SES
【发布时间】:2016-01-27 22:29:28
【问题描述】:

我正在尝试向我的客人发送一封带有活动标记的电子邮件,但没有成功。我正在使用 Amazon SES 发送电子邮件,但 Gmail 和 Inbox 均未显示邀请。我相信我使用正确的 DKIM 签名设置了 Amazon SES,并将我的个人 gmail 与 SES 链接。

收到的完整电子邮件如下

Delivered-To: xxxx@gmail.com
Received: by 10.107.136.164 with SMTP id s36csp123199ioi;
    Wed, 27 Jan 2016 14:05:16 -0800 (PST)
X-Received: by 10.55.75.85 with SMTP id y82mr38139956qka.29.1453932315743;
    Wed, 27 Jan 2016 14:05:15 -0800 (PST)
Return-Path: <00000152851e818e-5dd6f0af-7707-4e18-b278-f918cd14773c-000000@amazonses.com>
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com. [54.240.8.88])
    by mx.google.com with ESMTPS id t4si8059067qht.13.2016.01.27.14.05.15
    for <xxxx@gmail.com>
    (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
    Wed, 27 Jan 2016 14:05:15 -0800 (PST)
Received-SPF: pass (google.com: domain of 00000152851e818e-5dd6f0af-7707-4e18-b278-f918cd14773c-000000@amazonses.com designates 54.240.8.88 as permitted sender) client-ip=54.240.8.88;
Authentication-Results: mx.google.com;
   spf=pass (google.com: domain of 00000152851e818e-5dd6f0af-7707-4e18-b278-f918cd14773c-000000@amazonses.com designates 54.240.8.88 as permitted sender) smtp.mailfrom=00000152851e818e-5dd6f0af-7707-4e18-b278-f918cd14773c-000000@amazonses.com;
   dkim=pass header.i=@amazonses.com;
   dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1453932315;
h=From:Reply-To:To:Subject:MIME-Version:Content-Type:Message-ID:Date:Feedback-ID;
bh=Tcg1kQlJP4+u0X7GdV2QjlipSG+mgyFwieDIo8nh/7U=;
b=XAv/G3O/QLg0qrrxctppcY7yvB/oOizgL3BNLM1LSizltSmykmywLFgTNvuwMTUH
zNJJYI6mz6gk5d5jlkS3kx25owYjL/WCq4QRybPlVTJtVvuvyKcFW9MBw7RWBcEfIQL
PYhrLy214VmxHsi1uVQUtwKvjFRAst1rDAOlenq8=
From: =?UTF-8?B?RXNkcmFzIGUgTGlhIA==?= <xxxx@gmail.com>
Reply-To: xxxx@gmail.com
To: xxxx@gmail.com
Subject: Subject
MIME-Version: 1.0
Content-Type: multipart/alternative; 
boundary="----=_Part_24077334_1650467526.1453932315024"

Message-ID: <00000152851e818e-5dd6f0af-7707-4e18-b278-f918cd14773c-000000@email.amazonses.com>
Date: Wed, 27 Jan 2016 22:05:15 +0000
X-SES-Outgoing: 2016.01.27-54.240.8.88
Feedback-ID: 1.us-east-1.LtLhfWkGZbBzQf+J9gUX7yOKQsymo3nzRJ+0IQqaHIo=:AmazonSES

------=_Part_24077334_1650467526.1453932315024
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


{
  "@context" : "http://schema.org",
  "@type" : "EventReservation",
  "reservationNumber" : "1",
  "reservationStatus": "http://schema.org/Confirmed",
  "reservationFor" : {
    "@type" : "Event",
    "name" : "Title",
    "startDate" : "2016-04-16T15:00",
    "location" : {
      "@type" : "Place",
      "name" : "Name",
      "address" : {
        "@type" : "PostalAddress",
        "streetAddress" : "Address",
        "addressLocality" : "City",
        "addressRegion" : "Region",
        "addressCountry" : "Country",
        "postalCode" : "13030320"
      }
    }
  },
  "underName" : {
    "@type" : "Person",
    "name" : "Name"
  }
}

   Email-message

------=_Part_24077334_1650467526.1453932315024
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<script type=3D"application/ld+json">
{
  "@context" : "http://schema.org",
  "@type" : "EventReservation",
  "reservationNumber" : "1",
  "reservationStatus": "http://schema.org/Confirmed",
  "reservationFor" : {
    "@type" : "Event",
    "name" : "Title",
    "startDate" : "2016-04-16T15:00",
    "location" : {
      "@type" : "Place",
      "name" : "Name",
      "address" : {
        "@type" : "PostalAddress",
        "streetAddress" : "Address",
        "addressLocality" : "City",
        "addressRegion" : "Region",
        "addressCountry" : "Country",
        "postalCode" : "13030320"
      }
    }
  },
  "underName" : {
    "@type" : "Person",
    "name" : "Name"
  }
}
</script>
<br/>Email-Message
------=_Part_24077334_1650467526.1453932315024--

【问题讨论】:

标签: email amazon-ses google-schemas


【解决方案1】:

您的电子邮件编码是

Content-Transfer-Encoding: quoted-printable

因此所有“=”符号都将变为“=3D”。

在你的情况下:

<script type=3D"application/ld+json">

这似乎与 gmail 电子邮件标记不兼容。

尝试使用this作为测试工具,尝试使用和不使用3D

您会看到,在没有 3D 的情况下它可以工作,而在 3D 情况下它不会 p>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-22
    • 2017-10-12
    • 2020-08-28
    • 2016-08-22
    • 2017-04-30
    • 2015-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多