PDA

View Full Version : Need super simple method to send a form to an email address


eday_2010
03-05-2007, 09:02 PM
On my own site, I use a very long pearl script to send the forms on my site to my email. It works fine. However, I am redesigning a site for an organization who want a form. I don't want to use the long complicated script since they are not web saavy, plus I don't know if their hosts server can deal with it. And so far, it's not working correctly

So I need something super simple. PHP, CGI, whatever. It just needs to send the form to their email address. I would use <action="mailto: poo@pee.com" etc>, but that prompts the users email client to open, which I don't want.

So if anyone has something short and sweet (that works) to send a form to an email address, that would be great.

I found one at http://www.3rdcoast.com but it only grabs the first item in the fied and nothing else. Help please! This needs to be done very soon.

KevinADC
03-05-2007, 10:31 PM
I personally would not use that script you found, it's poorly written. Shows a degree of ignorance or just disregard for good perl programming and some basic CGI security. But it should work and it should process all form fields although it may not handle multi-valued form fields properly and certainly not file attachments if thats a concern.

FishMonger
03-05-2007, 10:35 PM
A "short and sweet" script equates to a scipt with lots of security holes/problems. If you want a secure script that is relatively easy to use, I'd suggest the ForMail script from the nms project.

http://nms-cgi.sourceforge.net/scripts.shtml

eday_2010
03-06-2007, 06:08 PM
http://nms-cgi.sourceforge.net/scripts.shtml doesn't work. All the links are busted.

FishMonger
03-06-2007, 07:36 PM
http://nms-cgi.sourceforge.net/scripts.shtml doesn't work. All the links are busted.
The site may have been down for a short time when your were trying to access it. It's up now and I was able to download the zip file.