尝试在我的电子邮件中添加“确认您的帐户”应用内操作按钮,但它不起作用。我试过移动东西,使用验证器,把它放在<head>
或<body>
(顺便说一句,它应该在哪里?文档是矛盾的)。
这是我正在尝试的消息的来源。使用 Gmail SMTP 服务器(安全)从我的本地开发 RoR 应用程序发送到我的 gmail 地址:
Return-Path: <me@gmail.com>
Received: from localhost.localdomain (97.248.35.213.dyn.estpak.ee. [213.35.248.97])
by mx.google.com with ESMTPSA id id.00.00....
for <me@gmail.com>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Sat, 08 Jun 2013 00:18:04 -0700 (PDT)
Date: Sat, 08 Jun 2013 10:18:02 +0300
From: me@gmail.com
Reply-To: me@gmail.com
To: me@gmail.com
Message-ID: <fdklsfjdklsjfd ... fdsfds@bla.mail>
Subject: Confirmation instructions
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "Confirm my account",
"action": {
"@type": "ConfirmAction",
"name": "Confirm my account",
"handler": {
"@type": "HttpActionHandler",
"url": "http://example.com/account/confirmation?confirmation_token=x574WeRJJNUuhiPqfVah",
}
}
}
</script>
</head>
<body>
<p>Hi there, me@gmail.com!</p>
<p>You can confirm your account email through the link below:</p>
<p><a href="http://example.com/account/confirmation?confirmation_token=x574WeRJJNUuhiPqfVah">Confirm my account</a></p>
</body>
</html>