发布mailto时对邮件正文的限制

发布mailto时对邮件正文的限制

本文介绍了发布mailto时对邮件正文的限制:表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 lot 输入字段的 HTML 表单,我用它来填充电子邮件.我今天了解到,使用 GET 方法将限制发布内容的大小.但据我所知,使用 POST 时没有限制.好吧,可能是因为我相信这可能是我的问题.我的电子邮件在达到特定大小时无法在电子邮件客户端中打开(或者如果我使用了过多的输入字段?)

I've got a HTML form with a lot of input fields, which I use to populate an email. I learned today that using the GET-method will limit the size of what's posted. But from what I can tell, there is no limit when using POST. Well, there probably is since I believe that this is probably my problem. My emails aren't opening in the email client when they have reached a certain size (or if I've used too many input fields?)

用户将无法始终保持互联网连接,唯一可靠"的沟通方式是通过电子邮件.他们在使用计算机方面受到限制,不能运行任何可执行文件.这就是为什么我创建了一个包含大量 javascript 的 HTML 文件来创建电子邮件正文.一些用户有一个电子邮件客户端,如果是这种情况,我想用 HTML 文件上的表单内容打开一封新电子邮件.

The users will not be able to have a constant internet connection, and the only "reliable" method to communicate is via email. They are limited in their usage of their computer and can't runt any executable files. That's why I created a HTML file with a lot of javascript that creates the email body. Some of the users have got an email client, and if that's the case I want to open a new email with the content from the form on the HTML file.

那么,发送带有 action="mailto:" 的表单时,正文的大小是否有某种限制?

So, is there some kind of limit of how big the body can be when sending a form with action="mailto:"?

推荐答案

在 Firefox 3.5.8 上测试,当使用 action="mailto:" 时,我只能将 1994 个字符填入 POST 表单.通常,您希望避免使用带有 body 参数的 mailto:.

Tested on Firefox 3.5.8, I could only cram 1994 characters into a POST form when using action="mailto:". Generally you want to avoid using mailto: with a body parameter.

也许只是让他们手动将生成的电子邮件的正文复制/粘贴到他们的客户端中.它非常粗糙,但有时你必须即兴发挥......

Perhaps just have them copy/paste the body of a generated email into their client manually. It's extremely crude, but sometimes you have to improvise....

这篇关于发布mailto时对邮件正文的限制:表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 22:55