gpt4 book ai didi

email - 测试 Gmail 架构失败

转载 作者:行者123 更新时间:2023-12-03 02:42:59 27 4
gpt4 key购买 nike

我正在尝试测试Gmail Schemas其中发件人和收件人是 Self Testing Notes 后面的同一个(我的)帐户

You can easily test if your markup is working correctly end-to-end by sending emails with schemas to your Gmail account. All emails where the sender and the recipient are the same account ignore the registration requirements and can be used for self-testing.

但如果没有预期的结果,则不会显示“操作”按钮。

我尝试使用 JSON-LD 和 Microdata,但没有结果。

这里是来 self 的 Gmail 帐户的电子邮件的“显示原始邮件”:

Return-Path: <fake-account-email-x@gmail.com>
Received: *****
Message-ID: <fake-email-id@gmail.com>
Date: Tue, 12 Nov 2013 09:41:53 +0100
From: Cristian <fake-account-email-x@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5
MIME-Version: 1.0
To: fake-account-email-x@gmail.com
Subject: test
Content-Type: multipart/alternative;
boundary="------------090703050903040805020509"

This is a multi-part message in MIME format.
--------------090703050903040805020509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


Ciao ${FIRSTNAME}$

* punto 1
* punto 2
* punto 3


--------------090703050903040805020509
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Approval request for John's
$10.13 expense for office supplies">
<div itemprop="action" itemscope=""
itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Approve Registration">
<div itemprop="handler" itemscope=""
itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="http://www.example.com/">
</div>
</div>
</div>
<h1>Ciao ${FIRSTNAME}$</h1>
<ul>
<li>punto 1</li>
<li>punto 2</li>
<li>punto 3</li>
</ul>
</body>
</html>

--------------090703050903040805020509--

这是它在列表中的显示方式:

enter image description here

在消息中:

enter image description here

我还通过 Markup Tester 验证了我的代码

我的测试错误在哪里?我无法弄清楚:(

更新20131113

通过 Test Gmail Schemas 发送电子邮件,正如 Devnook 所建议的,一切正常,但使用我的 Thunderbird 客户端(通过 SMTP 使用我的帐户)不行。

这里是通过“测试 Gmail 架构”进行的测试的来源

Delivered-To: fake-account-email-x@gmail.com
Received: by 10.224.58.135 with SMTP id g7csp190326qah;
Tue, 12 Nov 2013 22:48:43 -0800 (PST)
X-Google-DKIM-Signature: *********
X-Original-Authentication-Results: ********
Return-Path: <3yyCDUg0JErIYeSad-SUlagfkYeSad.UgeUjaklaSf.hgjlS.UjpYeSad.Uge@2UIX4H7XYGSZ66WEERLQ.apphosting.bounces.google.com>
Received-SPF: pass ********
Authentication-Results: mr.google.com;
spf=pass ********
X-Received: from mr.google.com ([10.224.24.65])
by 10.224.24.65 with SMTP id u1mr35599473qab.6.1384325323511 (num_hops = 1);
Tue, 12 Nov 2013 22:48:43 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.224.24.65 with SMTP id u1mr25556165qab.6.1384325323474; Tue,
12 Nov 2013 22:48:43 -0800 (PST)
X-Google-Appengine-App-Id: s~gmail-actions
X-Google-Appengine-App-Id-Alias: gmail-actions
Message-ID: <fake-email-id@google.com>
Date: Wed, 13 Nov 2013 06:48:43 +0000
Subject: Testing Gmail Actions 2013-11-13 06:48
From: fake-account-email-x@gmail.com
To: fake-account-email-x@gmail.com
Content-Type: multipart/alternative; boundary=001a11c2c63a28cf0504eb095b6e

--001a11c2c63a28cf0504eb095b6e
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Ciao ${FIRSTNAME}$


punto 1
punto 2
punto 3

--001a11c2c63a28cf0504eb095b6e
Content-Type: text/html; charset=ISO-8859-1

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Approval request for John's
$10.13 expense for office supplies">
<div itemprop="action" itemscope=""
itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Approve Registration">
<div itemprop="handler" itemscope=""
itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="http://www.example.com/">
</div>
</div>
</div>
<h1>Ciao ${FIRSTNAME}$</h1>
<ul>
<li>punto 1</li>
<li>punto 2</li>
<li>punto 3</li>
</ul>
</body>
</html>
--001a11c2c63a28cf0504eb095b6e--

“大”的区别是这封电子邮件的 header 包含 DKIM 签名和 SPF,但理论上 emails where the sender and the recipient are the same account ignore the registration requirements

这里显示“正确”的电子邮件

enter image description here

最佳答案

我测试了您的电子邮件(使用 http://gmail-actions.appspot.com/ 将其发送给我自己),并且我的收件箱中出现了该操作。所以你的标记没问题...你确定你没有将你的电子邮件转发到另一个帐户吗?

也许可以尝试一下来自 gmail-actions.appspot.com 的其他示例电子邮件是否有效。如果没有,也许您的收件箱中启用了一些实验室或某个主题阻止了该按钮的显示?

此外,据我所知,这仅适用于桌面。

关于email - 测试 Gmail 架构失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19925000/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com