Solved

CGI for Email

Posted on 2004-08-03
9
156 Views
Last Modified: 2013-12-25
I am looking for a script that will do this

I can make a form, like

Name:

Adress:

Phone Number:

and so on...

the user fills it out, and it gets sent to an email address...

If anyone can stear me to twords a script like this it would be much apreciated..


0
Comment
Question by:emilbus20
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 11710991
Sounds like you want FormMail

http://nms-cgi.sourceforge.net/
0
 
LVL 9

Expert Comment

by:dutchfoxer
ID: 11711357
In addition to Tintin..... you apparently need a script / program that can read the contents of a form and send it by e-mail to a specified e-mail address. This is very common on websites.

In most cases the Hosting provider has scripts pre-installed for you to use on your website. You could check a manual / helpdesk or something.

There is a wide selection of Form-processors on the internet, mostly for free as well. If you have no experience with programming I would not go for a Perl solution, better use a PhP solution. You can find and download a Form-processor you like right here:

http://www.hotscripts.com/PHP/Scripts_and_Programs/Form_Processors/

A famous Perl Mail form can be found here:
http://www.scriptarchive.com/formmail.html



Good luck!
0
 
LVL 48

Expert Comment

by:Tintin
ID: 11711981
Do NOT touch Matt's formmail script.  It is very badly written and has been responsible for many security holes over the years.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 11729979
Tintin, Matt's script is not badly written, it's just insecure with the knowledge of today and all those script-kiddies around ;-)

sorry for being off-topic
0
 
LVL 48

Expert Comment

by:Tintin
ID: 11748768
ahoffmann.

Depends on your definition of what "badly" written is.

Unfortunately, a lot of Perl newbies download Matt's code and use it as a basis for learning.  The code constructs are very clunky and inefficient.  Even Matt says that he'd never code like that now.  
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11748870
my definition seems to be similar to your's, but look at the date of the script, and my comment  ;-)
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 11790168
ahoffmann - it's not entirely offtopic, IMO - we're offering opinions on scripts to utilize to submit the results of a form to email. :)

I really have to agree with Tintin on this one - the MSA script is full of issues. While it may have not been considered a 'badly written script' at the time it was written,  the author himself has pointed out that there are bad programming practices within the script.  As Tintin alluded to, Matt says (in part):

"While the free code found at my web site has not evolved much in recent years, the general programming practices and standards of CGI programs have. nms is an attempt by very active programmers in the Perl community to bring the quality of code for these types of programs up to date and eliminate some of the bad programming practices and bugs found in the existing Matt's Script Archive code.

I would highly recommend downloading the nms versions if you wish to learn CGI programming. The code you find at Matt's Script Archive is not representative of how even I would code these days. My interests and activies have moved on, however, and I just have not found the time to update all of my scripts. One of the major reasons for this is that they work for many people. For this reason, I will continue to provide them to the public, but am also pleased to make you aware of well-coded alternatives."

(This is located here: http://www.scriptarchive.com/nms.html ).

0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 11790981
<off-topic>
please stop flaming me, I already agreed that you're all on the right track
and as security paranoid as I am, I'd never recommend such an old script
no offence to anyone (think most of you experts still know to read my comments:-)
</off-topic>
0
 
LVL 9

Expert Comment

by:dutchfoxer
ID: 11943931
off topic and getting points, hahhaha, lol
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question