Main Page / Browse Categories / Howto's & Guides / CGI / How to install NMS FormMail
How to install NMS FormMail

NMS FormMail is a drop-in replacement for the famous Matt's FormMail, whose code is outdated. Formmail allows you to receive the results of a HTML form submission via an email message.

 

Downloading

Download the latest zipped/tarred version of the script (currently 3.11c1) from the official NMS FormMail Download Site. Extract the files locally on your computer using any of the many unzip/untar programs available.

Configuring

Once you've downloaded to your computer, unzip/untar it. Inside the unzipped/untarred folder you will see a formmail subfolder. Inside the subfolder you will see the following:

  • formmail.pl

  • Readme

Open formmail.pl in your favorite text editor (i.e. notepad) and modify the following four lines:

Line 44: $mailprog = '/usr/lib/sendmail -oi -t';

Replace with $mailprog = '/usr/sbin/sendmail -oi -t';

Line 58: @referrer = qw(dave.org.uk 209.207.222.64 localhost);

Replace with @referrer = qw(yoursite.com www.yoursite.com);

Line 59: @allow_mail_to = qw(you@your.domain some.one.else@your.domain localhost);

Replace with @allow_mail_to = qw(you@yoursite.com);

Line 61: %recipient_alias = ();

Replace with %recipient_alias = ('1' => 'you@yoursite.com');

Uploading

Once you've made the modifications, upload formmail.cgi to your cgi-bin in ASCII (Text) mode. The permission for formmail.cgi will need to be changed to 0755 after being placed on the server.

Note: To avoid possibly having your script exploited, rename formmail.cgi to something else like contact.cgi.

Setting Up

Enter http://www.yoursite.com/cgi-bin/mojo/mojo.cgi in your address bar and enter the password you entered during the configuration stage above. You will than be able to start creating lists.

Security

After you are able to get your formmail working correctly, please change the following line in your script to make the script more secure:

Line 52: $DEBUGGING = 1;

Change to $DEBUGGING = 0;

Re-upload the script to your cgi-bin in ASCII (Text) mode. Make sure the permission is still set to 0755.



User Comments
How to install NMS FormMail
Add Comment
There are no user comments for this topic.
Add Comment
Additional Info
General Information
Article No. 165
Created: 03:14 AM 12.26.03
Author: HPU Support

Attachments
No attachments.

Did this help you?
Yes No

Statistics
Yes543 (48%) Voted Yes600 (52%) Voted NoNo

Other Options
Print Article
Email Article

Related Articles
Understanding CGI Basics
How to Install MojoMail