「アカウントの確認」アプリ内アクション ボタンをメールに追加しようとしていますが、機能しません。<head>
バリデーターを使用して、またはに入れてみました<body>
(ちなみに、どこにあるはずですか?ドキュメントは矛盾しています)。
これは、私が試みているメッセージのソースです。Gmail SMTP サーバー (保護されている) を使用して、ローカルの dev 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>