簡體   English   中英

如何在 AMP Html email 模板中設置 FORM 輸入和操作

[英]How to set FORM inputs and action in AMP Html email template

我正在使用帶有表單的 amp-template 發送電子郵件。 當我得到這個 email 模板 Thunderbird 什么都不顯示時,yandex 郵件應用程序顯示兩個小括號和 outlook 顯示表單很好,但我無法在我的網站上發布任何內容。

如果您有任何解決方案,我將非常高興

<form  class="proceed__form" method="GET" id="requirements-form"
              action-xhr="https://stevepaper.com/"
              target="_top">
              <div class="m1">
                <input type="text" class="inputla" name="name" placeholder="Your name .. " id="name">
                <input type="email" class="inputla" name="email" placeholder="Your email .. " id="email">
                <input type="text" class="inputla" name="subject" placeholder="Subject (Math or History ..)" id="subject">
                
                <textarea autoexpand  type="text-area" class="inputla" name="message" placeholder="Your message .. " id="message"></textarea>
              </div>

              <table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
                <tbody>
                  <tr>
                    <td align="left">
                      <table border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                          <tr>
                            <td>
                              <input type="submit" class="btn btn-primary" value="Gönder" name="gonder">
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>

              <div class="m1" submit-success>
                <template type="amp-mustache">
                  Subscription successful!
                </template>
              </div>
              <div class="m1" submit-error>
                <template type="amp-mustache">
                  Subscription failed!
                </template>
              </div>
            </form>

目前僅 Gmail、Mail.ru 和 Outlook.com 支持 AMP。 不幸的是,如果您的受眾使用其他 email 客戶端,您將無法使用 AMP-for-email。 你可以在這里閱讀更多關於它的信息

Yandex 不支持@media 和 AMP

我想它是永遠的=/

但是您可以將 AMP 與簡單的 HTML 結合使用,如果不支持 AMP,則會顯示該 HTML。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM