在发送之前将联系人发送到不同的服务器/域

发布于 2024-11-09 14:57:07 字数 346 浏览 4 评论 0原文

我有两个网站,我需要在其他网站上制作联系表。但实际发送邮件的PHP是在其他服务器上。

所以表单位于 www.domain1.com/contactform.html / server1 点击那里的发送按钮,它会将信息发送到 www.domain2.com/mail.php / server2

我认为这应该是可能的,但是这是否存在任何安全问题?

另外,我还需要将最终用户的电子邮件(某人正在联系的人)发送到 server2...也许在隐藏字段上?但是 spamspot 可以从隐藏字段中识别该地址吗?或者人们可以将地址更改为不同的?

希望你明白我的意图。问题更多的是这样做是否安全以及是否有更好的方法来做到这一点。

I have two websites and I would need to make a contact form on other of the sites. But the PHP that actually sends the mail is on other server.

So the form is on www.domain1.com/contactform.html / server1
And hitting the send button there it would send the info to www.domain2.com/mail.php / server2

I think this should be possible but is there any security issues on this?

Also I would need to send the end users email (to who someone is contacting to) also to the server2... maybe on a hidded field? But can spamspot recognize that address from hidden field? Or people can change the address to different?

Hopefully you understand what I intend to do. The questions are more that is it secure to do it like that and are there better ways to do it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傲影 2024-11-16 14:57:07

根据我个人的经验,在domain1.com 联系表单上创建另一个mail.php 文件会更有意义。
至于向最终用户发送电子邮件,您可以将其放在隐藏字段中,这样效果就很好。

From my personal experience, it would make more sense to just make another mail.php file on the domain1.com contact form.
As far as sending the end users email, you could put it in a hidden field, and that'd work fine.

青春有你 2024-11-16 14:57:07

如果您在同一服务器上有 contactform.html 和 mail.php,则会出现相同的安全问题。

It would have the same security issues, if you had contactform.html and mail.php on the same server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文