![]() |
|
![]() |
![]() |
|
||||||||||||
|
![]()
|
![]() |
Setting up CGI FormMail (EM)
* This tutorial is only for subscribers of the DH Unix Plus, DH Unix Pro or Ultra Web Hosting services. The common gateway interface (CGI) is a standard way for a web server to pass a web user's request to an external application program for processing and (where applicable) to receive back the data results. A CGI FormMail allows data to be submitted through an HTML form and that data to be processed by a form handler application which typically sends the results to a predefined email address or file location. If you are creating a website and want a CGI application to be run, you would specify the name of the application in the uniform resource locator (URL) that you code in an HTML file. This URL can be specified as part of the FORMS tags if you are creating a form. For example, you might code: < FORM METHOD=POST ACTION=http://www.yourdomain.com/cgi-bin/FormMail.pl > and the server at "yourdomain.com" would pass control to the CGI application called "FormMail.pl" to process the entered data and return a confirmation message. (The ".pl" indicates a program written in PERL but other languages could have been used.) Important: Clients should only use this security enhanced version of Matt Wright's FormMail Version 1.9 to prevent script hijacking and possible SPAM abuse.
Also make sure the paths to Perl and Sendmail are correct, they should look exactly as in the screenshot here. By default these paths are set correctly for you if you download the script from our server.
Important: The input tags which are defined as hidden is information used by the FormMail script only and will not show up in a browser when the page source code is viewed. The hidden value of recipient in the HTML form MUST MATCH the recipient_addresses variable you defined as the recipient address in the FormMail.pl script in order for the script to send email.
To change file permissions using CuteFTP, select the file by clicking on it once on the remote system side and then right-click on the file to bring up the option menu and select CHMOD. To assign the correct file permissions under Owner check Read, Write, Execute, under Group check Read, Execute and under Other check Read and Execute. The manual value of the permission is 7-5-5.
![]() |
|