PDA

View Full Version : Script to do a form submition to e-mail.



ultranet
January 4th, 2007, 02:20 AM
Hello there.
Until recently we were using a free script on our client's site to generate form submissions to send e-mails to our clients. However spammers were apparently able to exploit the code to send spam from our server. I was hoping to get some help either finding a new free code without that exploit vulnerability, or some help setting up a script without that exploit in it.
Thanks

restlessdesign
January 4th, 2007, 04:36 PM
There's some tutorials out there that will show you how to protect php e-mail scripts from spam. You just need to do a lot of little things like stripping out newline characters, validating the user agent and requesting domain, etc. etc.

I'm pretty sure php.net has some code under the mail() function entry.