开发者

Sending contact for to different server/domain before sending

开发者 https://www.devze.com 2023-03-08 11:44 出处:网络
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开发者_Go百科.

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开发者_Go百科.

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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号