表单在 Outlook 中不起作用。我们能否在电子邮件模板中创建适用于所有邮件平台(如 gmail、yahoo、outlook 等)的表单

Form is not working in outlook. can we create forms in email templates that will work in all mailing platforms like gmail, yahoo, outlook etc

我想创建一个电子邮件模板,它有一个表单,但它在 outlook 桌面和其他 outlook 邮件上不起作用。

有没有办法实现它如果没有那么我们可以检查它是哪个电子邮件(例如:gmail,outlook等)然后显示不同的视图。 基本上显示 gmail 的不同部分和 outlook.com?

的不同部分

在我的例子中,我在 html 电子邮件模板中添加了一个获取表单,它需要用户命名一个电子邮件并将其路由到 url。它在 yahoo 和 gmail 上正常工作,但当我按下表单的提交按钮时,它会将我带到 outlook 的空白页面。

我尝试使用一些网站上提到的 if else 评论: https://www.litmus.com/blog/the-ultimate-guide-to-interactive-forms-in-email/

这是我的代码: “

<form action="https://stable.katang.io/gallery/people-society/the-shame-of-new-york-state/6268ed0ee0c44ef681951af26931e71e/5ae900ad9a9c474e800d6e615d797037?fname=Pranali&email=frz.shkh@gmail.com" method="get" target="_blank"> 
  Full Name <br>
  <input type="text" placeholder="Full Name" value="" id="name" name="fname" required /> <br>
  Email Address <br>
  <input type="text" placeholder="Email Address" value="" id="email" name="email" required /> <br>
  <!-- form -->
  <button type="submit">
    Submit
  </button>
</form>"

Blockquote

不,那是不可能的。出于安全原因,Outlook 阻止邮件正文中 运行 中的脚本或表单。事实上,Microsoft Office Outlook 使用 Microsoft Office Word 中的 HTML 解析和呈现引擎来显示 HTML 邮件正文。而inputform等元素是渲染引擎不支持的。您可以在以下系列文章中阅读有关受支持和不受支持的 HTML 元素、属性和级联样式表属性的更多信息: