我需要有关电子邮件表格的帮助 [英] I need help with e-mailing forms

查看:77
本文介绍了我需要有关电子邮件表格的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在网站设计中使用什么协议发送电子邮件表格.有人告诉我"mailto:"协议不合适.

Please what protocol is used for e-mailing forms in website designing. Someone told me that the ''mailto:'' protocol is not appropriate.

推荐答案

据我所知,如果仅使用HTML mailto,则是唯一的方法回答.

但是,如果您使用服务器端语言,则可以选择. PHP,perl,.net等都可以很好地完成邮件发送.您创建一个html表单,并将其提交给您的代码.

另一种选择是寻找外部表格处理公司.然后,您的html表单将发布到他们的网站,并且他们会为您中继邮件.这样,您不必做服务器部分.
If you are using just HTML mailto, as far as I know, is the only answer.

However, if you use server side languages then you can take your pick. PHP, perl, .net, etc.. all do mail well. You create an html form, and submit it to your code.

Another option is to find an external form processing company. Then your html form gets posted to their site, and they relay the mail for you. This way you don''t have to do the server portion.


有人撒谎了.

Mailto绝对是实现此目标的方法.

请参见此处 [
Somebody lied.

Mailto is absolutely the way to do it.

see here[^]


您永远不会通过电子邮件发送"任何形式. Web表单是一种帮助使用"POST"方法将HTTP请求发送到Web服务器的工具.您始终需要进行一些服务器端编程/脚本处理,以接收发布数据,对其进行处理,转换为电子邮件标准所需的数据块,然后执行一些操作以实际将其邮寄出去.

这是另一步,具体取决于您的主机用于邮件发送的内容.通常,它使用SMTP协议.

请参阅:
http://en.wikipedia.org/wiki/HTTP [ http://en.wikipedia.org/wiki/Web_form [ http://en.wikipedia.org/wiki/Email [ http://en.wikipedia.org/wiki/Smtp [它当然不适合Web表单(请参见上文).但是,您可以在页面上以任何形式使用它[b](没有任何服务器端编程),就像其他形式一样锚定为"href".在这种情况下,本地系统将尝试处理它.它可能会在本地主机上打开一个默认的电子邮件程序. (但是谁知道它是在用户计算机中设置的呢?)无论如何,用户可以简单地从此链接复制电子邮件地址并决定要做什么. Web开发人员不必担心.

—SA
You never "e-mail" any form. The Web form is the instrument helping to send HTTP request using the method "POST" to the Web server. You always need to do some server-side programming/scripting to accept the post data, process it, convert to the data block required by e-mail standards and then do something to actually mail it.

This is another step which depends on what you host uses for mailing. Most usually, it uses SMTP protocol.

Please see:
http://en.wikipedia.org/wiki/HTTP[^],
http://en.wikipedia.org/wiki/Web_form[^],
http://en.wikipedia.org/wiki/Email[^],
http://en.wikipedia.org/wiki/Smtp[^].

Is "mailto:" schema appropriate? Yes and not. It is certainly not appropriate for Web forms (see above). But you can use it without any form (and without any server-side programming) on you page as any other anchor with "href". In this case, the local system will try to handle it. It may open a default e-mail program on the local host. (But who knows is it set up in the user''s computer or not?) Anyway, the user can simply copy the e-mail address from this link and decide what to do. This is not a concern of the Web developer.

—SA


这篇关于我需要有关电子邮件表格的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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