Ios 使用MFMailComposeViewController添加gmail快速操作按钮?

Ios 使用MFMailComposeViewController添加gmail快速操作按钮?,ios,google-schemas,Ios,Google Schemas,在iOS上使用MFMailComposeViewController时,是否可以在html模板中添加gmail操作按钮?我试图通过给自己发送电子邮件来进行测试,但到目前为止,当我从iOS向自己发送电子邮件时,我无法在gmail中显示操作按钮 我正在使用保存为Test.HTML的示例HTML代码: <html> <head> <script type="application/ld+json"> { "@context":

在iOS上使用MFMailComposeViewController时,是否可以在html模板中添加gmail操作按钮?我试图通过给自己发送电子邮件来进行测试,但到目前为止,当我从iOS向自己发送电子邮件时,我无法在gmail中显示操作按钮

我正在使用保存为Test.HTML的示例HTML代码:

<html>
  <head>
    <script type="application/ld+json">
    {
      "@context":       "http://schema.org",
      "@type":          "EmailMessage",
      "description":    "Check this out",
      "action": {
        "@type": "ViewAction",
        "url":   "https://www.youtube.com/watch?v=eH8KwfdkSqU"
      }
    }
    </script>
  </head>
  <body>
    <p>
      This a test for a Go-To action in Gmail.
    </p>
  </body>
</html>
这会打开我手机上的默认邮件应用程序,我会将邮件发送到我的gmail帐户。我收到电子邮件,但在浏览器中查看电子邮件时(不在iOS上)没有操作按钮。我猜它不起作用,因为电子邮件没有正确签名

编辑。以下是电子邮件来源:

    Return-Path: <erik.maxwell.hunter@gmail.com>
Received: from [10.228.122.48] (mobile-198-228-192-015.mycingular.net. [198.228.192.15])
        by mx.google.com with ESMTPSA id t10sm1451398igz.9.2013.07.16.06.49.19
        for <erik.maxwell.hunter@gmail.com>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 16 Jul 2013 06:49:20 -0700 (PDT)
Content-Type: multipart/alternative; boundary=Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Transfer-Encoding: 7bit
Subject: Hey, I shared a photo with you!
From: Personal Gmail <erik.maxwell.hunter@gmail.com>
Message-Id: <3C165C2C-C0F9-444B-85C1-84E96750CA1D@gmail.com>
Date: Tue, 16 Jul 2013 09:49:16 -0400
To: Erik Hunter <erik.maxwell.hunter@gmail.com>
Mime-Version: 1.0 (1.0)
X-Mailer: iPhone Mail (10A403)


--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Type: text/plain;
    charset=us-ascii
Content-Transfer-Encoding: 7bit

This a test for a Go-To action in Gmail.    
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Type: text/html;
    charset=utf-8
Content-Transfer-Encoding: 7bit

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>

    <script type="application/ld+json">
    {
      "@context":       "http://schema.org",
      "@type":          "EmailMessage",
      "description":    "Check this out",
      "action": {
        "@type": "ViewAction",
        "url":   "https://www.youtube.com/watch?v=eH8KwfdkSqU"
      }
    }
    </script>


    <p>
      This a test for a Go-To action in Gmail.
    </p>

</div></body></html>
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235--
返回路径:
收到:来自[10.228.122.48](mobile-198-228-192-015.mycingular.net。[198.228.192.15])
通过mx.google.com使用ESMTPSA id t10sm1451398igz.9.2013.07.16.06.49.19
对于
(版本=TLSv1密码=ECDHE-RSA-RC4-SHA位=128/128);
2013年7月16日星期二06:49:20-0700(PDT)
内容类型:多部分/备选;边界=Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
内容传输编码:7bit
主题:嘿,我和你分享了一张照片!
发件人:个人Gmail
消息Id:
日期:2013年7月16日星期二09:49:16-0400
致:埃里克·亨特
Mime版本:1.0(1.0)
X-Mail:iPhone邮件(10A003)
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
内容类型:文本/纯文本;
字符集=美国ascii码
内容传输编码:7bit
这是对Gmail的一个测试。
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
内容类型:text/html;
字符集=utf-8
内容传输编码:7bit
{
“@context”:”http://schema.org",
“@type”:“EmailMessage”,
“说明”:“查看此项”,
“行动”:{
“@type”:“ViewAction”,
“url”:”https://www.youtube.com/watch?v=eH8KwfdkSqU"
}
}

这是对Gmail的一个测试。

--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235--
缺少签名很可能是按钮未显示的原因


请将电子邮件来源添加到您的问题中,以便我们确认。你可以通过打开下拉菜单并选择“Show original”从Gmail获得它。

缺少签名很可能是按钮未显示的原因


请将电子邮件来源添加到您的问题中,以便我们确认。打开下拉菜单,选择“Show original”(显示原创),即可从Gmail中获取该信息。

你好,克劳迪奥,谢谢你的回复。我已将电子邮件源添加到我的问题中。谢谢,标题中没有签名,因此标记不会得到处理。嗨,克劳迪奥,谢谢你的回复。我已将电子邮件源添加到我的问题中。谢谢,标题中没有签名,因此不会处理标记。
    Return-Path: <erik.maxwell.hunter@gmail.com>
Received: from [10.228.122.48] (mobile-198-228-192-015.mycingular.net. [198.228.192.15])
        by mx.google.com with ESMTPSA id t10sm1451398igz.9.2013.07.16.06.49.19
        for <erik.maxwell.hunter@gmail.com>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 16 Jul 2013 06:49:20 -0700 (PDT)
Content-Type: multipart/alternative; boundary=Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Transfer-Encoding: 7bit
Subject: Hey, I shared a photo with you!
From: Personal Gmail <erik.maxwell.hunter@gmail.com>
Message-Id: <3C165C2C-C0F9-444B-85C1-84E96750CA1D@gmail.com>
Date: Tue, 16 Jul 2013 09:49:16 -0400
To: Erik Hunter <erik.maxwell.hunter@gmail.com>
Mime-Version: 1.0 (1.0)
X-Mailer: iPhone Mail (10A403)


--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Type: text/plain;
    charset=us-ascii
Content-Transfer-Encoding: 7bit

This a test for a Go-To action in Gmail.    
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235
Content-Type: text/html;
    charset=utf-8
Content-Transfer-Encoding: 7bit

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>

    <script type="application/ld+json">
    {
      "@context":       "http://schema.org",
      "@type":          "EmailMessage",
      "description":    "Check this out",
      "action": {
        "@type": "ViewAction",
        "url":   "https://www.youtube.com/watch?v=eH8KwfdkSqU"
      }
    }
    </script>


    <p>
      This a test for a Go-To action in Gmail.
    </p>

</div></body></html>
--Apple-Mail-FF6A80E5-6EEB-48DC-AA50-D59C49D21235--