View Full Version : which is the best formail script?
I need:
- hide email in form not to be spidered by robots
-autoresponder
-ok and error page
show ip and time
Thanks;)
rob2132
10-05-03, 09:41 PM
I need:
- hide email in form not to be spidered by robots
-autoresponder
-ok and error page
show ip and time
Thanks;)
You can "hard code" the email address recipient in the script itself and not accept the field passed to it. You can have a file that houses a list of addresses dependent upon the 'department' selected and send to the associated recipient(s) dynamically too.
It's certainly a bad idea to have to put the email address in the HTML of a page and there's no point of doing that anyway (not to mention more poorly coded scripts lack the logic to deal with it and allow for spammers to hijack said scripts).
As for the auto-responder, be careful of that so it can't be abused since you have no way to confirm the person filling in the email address on the form as the "requester" is actually that person. Some time delay or auto-block feature is wise too, especially since you want to use an auto-response feature (so someone can't grossly abuse this feature to harass someone--or you for that matter).
The IP and time can be added to any existing script easily--though I'd recommend also checking the X_FORWARDED_FOR and HTTP_PROXY %ENV variables as well, since you want to know where the requester really is (assuming a proxy they might be running through outputs said variables--it's worth adding anyway).
The error and submission page responses can be just output by the script, but certainly you can parse templates to print them out with the relevant fields/content via the script, or, as you suggested, simply serve up a static page/URL in response. My recommendation, though there's many out there, is to use the NMS formmail script (http://nms-cgi.sourceforge.net) and modify that--just stay away from any Matt Wright scripts.
This above is assuming you're considering Perl and CGI, though the other suggestions other than the script itself I mentioned, apply to any language/interface. If you intend to use another language or interface, then you will surely find something out there, but be sure you understand the risks involved with using a script that you can't personally verify it's able to be exploited.
i2-Services
11-06-03, 01:00 PM
Hello All,
We offer one which covers your requirements at:
http://www.cgi-world.com/form_manager.html
Thx....
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.