将HTML表单放入电子邮件中是不切实际的吗? [英] Is it impractical to put an HTML form into an email?

查看:160
本文介绍了将HTML表单放入电子邮件中是不切实际的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个客户要求这个,我从来没有得到或给出一个令人满意的答案。



我的理解是你可以,但是不能保证电子邮件客户端正确处理它,因此方法只适用于您有机会测试的个人收件人,而不是使用不同邮件客户端的庞大的邮件列表。但是,我的理解来自于许多开发人员的朋友耸耸肩,没有权限,我已经找到了一个明确的答案。



Stack Overflow是什么意思?当客户要求这样做时,最好的答案是什么?例如,想要几百人填写调查?



(不要麻烦的只是回答提供一个网站上的表单的链接,这是明显的答案,我想具体知道是否有一致的电子邮件表单。)

解决方案

1。电子邮件中的HTML被一些人认为是一个病害



它几乎没有工作,当它工作时,它不能正常工作。



我最近经历过一个案例,一个相当漫长的html电子邮件,尽管组合良好,工作相当好,被削减了一半,并由GMail过早修剪(由于长度)扭曲了设计。



我还有一些案例表明,如果邮箱在我的收件箱中显示格式错误,就像是真的是一封空白的电子邮件一样。



2。我不信任我的电子邮件中的表单



出于安全原因,大多数情况下,一些客户端可能会拦截表单操作,并且发布的操作将不会在任何地方(特别是在具有物理电子邮件客户端的情况下,打开Web浏览器通过它发布数据,这很复杂)。



你是只要在一个可以控制的网站上放置一个表单,人们就不会有任何讨厌的话(特别是如果你需要javascript来执行表单,很多电子邮件客户端都不会这样做)



也许,您可以放置​​一个表单,但为了理智,尽可能向后兼容,以便有人使用基于文本的浏览器,如 Pine Mutt 仍然可以读取,给予一个不需要客户端魔法的工作表单的链接。


I've had several clients ask this, and I've never been able to get or give a satisfactory answer. Can you (practically) put a working form into an HTML email?

My understanding is that you can, but that there's no guarantee of email clients properly handling it, so that method would only be practical with individual recipients that you'd had a chance to test with, rather than with huge mailing lists of people using diverse email clients. But my understanding comes from a lot of developer friends shrugging at the question and no authority that I've found giving a clear answer either way.

What does Stack Overflow think? What's the best answer when you're asked to do this by a client who, for instance, wants a few hundred people to fill out a survey?

(Don't bother just answering "provide a link to a form on a website". That's the obvious answer. I want to know specifically if there's a consensus about forms in email.)

解决方案

1. HTML in email is perceived by some to be a blight

It just hardly ever works, and when it does work, it doesn't work properly.

I recently experienced a case where a rather lengthy html email, although well composed and worked rather well, was cut in half and prematurely trimmed by GMail ( due to length ) which mangled the design a bit.

I've also had cases where the HTML was so malformed the email turned up in my inbox as if it were really a blank email.

2. I don't trust forms in my email

For security reasons mostly, some clients may intercept the form action, and the post action won't go anywhere ( Especially in cases where they have a physical email client, Open Web browser and posting data via it, thats rather complicated ).

You are simply better off having a form on a website that you can control, and people don't have any nasty surpises about ( Especially if you need javascript to execute the form, many email clients won't put up with that )

Maybe, you can put a form in, but for the sake of sanity, be as backwards compatible as possible, so that somebody with a text based browser like Pine or Mutt can still read it, and be given a link to a working form that doens't require client magic.

这篇关于将HTML表单放入电子邮件中是不切实际的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆