如果我在客户端进行所有验证并且只想将提交的表单数据发送到电子邮件(无需将其存储在服务器上),为什么所有联系表单解决方案似乎都将服务器包含在流程中?
问问题
51 次
2 回答
3
因为client-side
JavaScript 不能发送电子邮件..
无论如何,大多数人不会将数据存储在服务器上,他们只是使用它来进行验证(这很重要,因为可以禁用 javascript!)
于 2013-07-27T12:06:51.760 回答
2
Because you are sending the email, not the user, so the data used to construct the email has to be sent to your server for you to put it in the email. The data doesn't need to be stored though.
Websites do not have the ability to instruct the user's email software (assuming the user has email software) to send emails on their behalf.
于 2013-07-27T12:09:05.157 回答