<small id='7iMOI'></small><noframes id='7iMOI'>

    <legend id='7iMOI'><style id='7iMOI'><dir id='7iMOI'><q id='7iMOI'></q></dir></style></legend>
  1. <tfoot id='7iMOI'></tfoot>

      <i id='7iMOI'><tr id='7iMOI'><dt id='7iMOI'><q id='7iMOI'><span id='7iMOI'><b id='7iMOI'><form id='7iMOI'><ins id='7iMOI'></ins><ul id='7iMOI'></ul><sub id='7iMOI'></sub></form><legend id='7iMOI'></legend><bdo id='7iMOI'><pre id='7iMOI'><center id='7iMOI'></center></pre></bdo></b><th id='7iMOI'></th></span></q></dt></tr></i><div id='7iMOI'><tfoot id='7iMOI'></tfoot><dl id='7iMOI'><fieldset id='7iMOI'></fieldset></dl></div>
        <bdo id='7iMOI'></bdo><ul id='7iMOI'></ul>

      无法让gmail一键确认操作按钮工作

      Can#39;t get gmail one click confirm action button working(无法让gmail一键确认操作按钮工作)
            <tbody id='M18d0'></tbody>

          <legend id='M18d0'><style id='M18d0'><dir id='M18d0'><q id='M18d0'></q></dir></style></legend>
              <bdo id='M18d0'></bdo><ul id='M18d0'></ul>
              <tfoot id='M18d0'></tfoot>

            • <small id='M18d0'></small><noframes id='M18d0'>

              <i id='M18d0'><tr id='M18d0'><dt id='M18d0'><q id='M18d0'><span id='M18d0'><b id='M18d0'><form id='M18d0'><ins id='M18d0'></ins><ul id='M18d0'></ul><sub id='M18d0'></sub></form><legend id='M18d0'></legend><bdo id='M18d0'><pre id='M18d0'><center id='M18d0'></center></pre></bdo></b><th id='M18d0'></th></span></q></dt></tr></i><div id='M18d0'><tfoot id='M18d0'></tfoot><dl id='M18d0'><fieldset id='M18d0'></fieldset></dl></div>

              1. 本文介绍了无法让gmail一键确认操作按钮工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在遵循此处描述的指南
                https://developers.google.com/gmail/schemas/reference/one-点击动作

                但它只是不会出现在我面前.如所述这里

                <块引用>

                自测

                您可以通过以下方式轻松测试您的标记是否在端到端正常工作将带有架构的电子邮件发送到您的 Gmail 帐户.所有电子邮件发件人和收件人是同一个帐户忽略注册要求,可用于自测.

                我在往返地址中都使用了相同的 gmail 地址,如下所示

                GradeCard gc = new GradeCard("105106265", "BTS");var m = new UserMailer().ConfirmSubscription("Shashwat", "user@email.com", new WatchListEmail() { fullName = "from Model", gc = gc });Response.Write(m.Body);var client = new SmtpClient("smtp.gmail.com", 587){Credentials = new NetworkCredential("user@email.com", "xxxxx"),EnableSsl = 真};client.Send(m);

                生成邮件的HTML是这样的

                <!DOCTYPE html><html><身体><div style="width: 600px; margin: auto; font-family: 'Segoe UI';"><h1 style="font-weight:lighter; border-bottom:1px solid #808080; padding:5px 0;">example.com</h1><h3 style="font-weight:lighter;">需要操作.确认订阅 EN abc</h3><p>亲爱的<b>abc</b></p><脚本类型="应用程序/ld+json">{"@context": "http://schema.org","@type": "EmailMessage","description": "需要采取行动.确认订阅 EN 105106265",行动": {"@type": "确认操作","name": "加入关注列表",处理程序":{"@type": "HttpActionHandler",网址":http://www.myignou.com?a=1&b=2"}}}</脚本><p>根据您的要求,我们刚刚将您的订阅添加到以下详细注册号中</p><p>...</p><p>点击<a href="http://www.myignou.com?a=1&b=2">这里确认</a></p><div style="margin:10px 0;"><p>这是您最新的成绩卡副本,日期为 <b>05-09-2013 00:03:37</b><br/>变更集 ID:xxx</p><table style="width: 100%; text-align: center;border-collapse:collapse;">……</表><h3 style="font-weight:lighter;">之前的其他改动</h3><div style="padding: 10px"><h4 style="font-weight:lighter; margin: 0">更新于03-09-2013 15:15:20</h4><div>变更集 ID:abc</div>

                ...</div></div><div style="padding: 10px"><h4 style="font-weight:lighter; margin: 0">更新于03-09-2013 15:14:21</h4><div>变更集 ID:xxx</div>

                ...</div></div><div style="padding: 10px"><h4 style="font-weight:lighter; margin: 0">更新于03-09-2013 15:14:21</h4><div>变更集 ID:abca</div>

                ...</div></div></div><div style="padding: 10px; margin: 20px 0; background-color: #f2f0f0; font-size: 85%; color: #686868;"><b>&复制;2013 myIGNOU.com</b><br/></div></div></身体></html>

                解决方案

                如果您检查电子邮件标头,我预计找不到 DKIM/SPF 签名,即使是自测也是必需的.如果没有签名,任何人都可以欺骗您的电子邮件地址并向您发送不需要的电子邮件.

                I am following the guidelines as described here
                https://developers.google.com/gmail/schemas/reference/one-click-action

                But It's just wont appear for me. As described here

                Self testing

                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.

                I am using my same gmail address in both to and from address like below

                GradeCard gc = new GradeCard("105106265", "BTS");
                var m = new UserMailer().ConfirmSubscription("Shashwat", "user@email.com", new WatchListEmail() { fullName = "from Model", gc = gc });
                
                Response.Write(m.Body);
                
                var client = new SmtpClient("smtp.gmail.com", 587)
                {
                    Credentials = new NetworkCredential("user@email.com", "xxxxx"),
                    EnableSsl = true
                };
                
                client.Send(m);
                

                HTML of generated mail is like this

                <!DOCTYPE html>
                
                <html>
                <body>
                    <div style="width: 600px; margin: auto; font-family: 'Segoe UI';">
                        <h1 style="font-weight:lighter; border-bottom:1px solid #808080; padding:5px 0;">example.com</h1>
                        <h3 style="font-weight:lighter;">Action Required. Confirm your subscription for EN abc</h3>
                        <p>
                            Dear <b>abc</b>
                        </p>
                        <script type="application/ld+json">
                {
                  "@context": "http://schema.org",
                  "@type": "EmailMessage",
                  "description": "Action Required. Confirm your subscription for EN 105106265",
                  "action": {
                    "@type": "ConfirmAction",
                    "name": "Add to watchlist",
                    "handler": {
                      "@type": "HttpActionHandler",
                      "url": "http://www.myignou.com?a=1&b=2"
                    }
                  }
                }
                </script>
                
                <p>As you requested, We have just added your subscription to the following detailed enrollment number</p>
                <p>
                    ...
                </p>
                <p>
                    Click <a href="http://www.myignou.com?a=1&b=2">here to confirm</a>
                </p>
                <div style="margin:10px 0;">
                    <p>
                        Here is your most recent copy of grade card as on <b>05-09-2013 00:03:37</b><br />
                        Changeset ID: xxx
                    </p>
                
                    <table style="width: 100%; text-align: center; border-collapse: collapse;">
                        ....
                    </table>
                    <h3 style="font-weight: lighter;">Other previous changes</h3>
                        <div style="padding: 10px">
                            <h4 style="font-weight: lighter; margin: 0">Updated on 03-09-2013 15:15:20</h4>
                            <div>Changeset ID: abc</div>
                            <div>
                                ...
                            </div>
                        </div>
                        <div style="padding: 10px">
                            <h4 style="font-weight: lighter; margin: 0">Updated on 03-09-2013 15:14:21</h4>
                            <div>Changeset ID: xxx</div>
                            <div>
                                ...
                            </div>
                        </div>
                        <div style="padding: 10px">
                            <h4 style="font-weight: lighter; margin: 0">Updated on 03-09-2013 15:14:21</h4>
                            <div>Changeset ID: abca</div>
                            <div>
                                ...
                            </div>
                        </div>
                    </div>
                        <div style="padding: 10px; margin: 20px 0; background-color: #f2f0f0; font-size: 85%; color: #686868;">
                            <b>&copy; 2013 myIGNOU.com</b><br />
                
                        </div>
                    </div>
                </body>
                </html>
                

                解决方案

                If you check the email headers, I'd expect that no DKIM/SPF signature can be found, and that is required even for self-testing. Without the signature, anyone can spoof your email address and send you unwanted email with actions.

                这篇关于无法让gmail一键确认操作按钮工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                html javascript show image hover(html javascript 显示图像悬停)
                How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                Change background image on link hover(更改链接悬停时的背景图像)
                Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)

                1. <tfoot id='TTnS2'></tfoot>
                2. <legend id='TTnS2'><style id='TTnS2'><dir id='TTnS2'><q id='TTnS2'></q></dir></style></legend>
                  • <bdo id='TTnS2'></bdo><ul id='TTnS2'></ul>
                      <tbody id='TTnS2'></tbody>

                    <small id='TTnS2'></small><noframes id='TTnS2'>

                          <i id='TTnS2'><tr id='TTnS2'><dt id='TTnS2'><q id='TTnS2'><span id='TTnS2'><b id='TTnS2'><form id='TTnS2'><ins id='TTnS2'></ins><ul id='TTnS2'></ul><sub id='TTnS2'></sub></form><legend id='TTnS2'></legend><bdo id='TTnS2'><pre id='TTnS2'><center id='TTnS2'></center></pre></bdo></b><th id='TTnS2'></th></span></q></dt></tr></i><div id='TTnS2'><tfoot id='TTnS2'></tfoot><dl id='TTnS2'><fieldset id='TTnS2'></fieldset></dl></div>