Easy HTML Form Setup

Quick Formmail Script Setup

The instructions provided with formmail can be rather complex. Here are the simple steps to setup formmail with your hosting:

Click here if you have AllWebCo cPanel Hosting

For GoDaddy hosting users

To Have AllWebCo setup your contact form

The steps shown on this page are:
1. Edit the contact.htm
2. Install or download the script
3. Edit the script
4. Check the contact.htm
5. Upload the script
6. CHMOD the script
7. Test the contact form

Step 1:
Download Formmail (or use alternate download) to your computer, or check the Alternate Formmail Script support page. You can also try the download at worldwidemart.com

If the above link is not working: you can also download the advanced script from mattsscripts.co.uk. Allwebco has not tested this script. If you download and test this script please contact us with any info so we can update our support area for other users.

If the above link is not working: The creator of the formmail script (Matt) offers to run the script from their website for a monthly fee. Click here for info on this option. Allwebco does not support and has not tested this option. All support would be provided by http://www.formmail.com.

Step 2:
Edit your contact.htm or quotes.htm and replace "your-web-domain.com" with your domain name in three places. Click for details. (NOTE: You may need to edit the formmail.cgi in the template contact.htm or quote.htm to formmail.pl with the script you downloaded above.)

Step 3:
If you do NOT have Allwebco hosting and do NOT have a cgi-bin in your hosting area, click here and check "Formmail Setup Options".

If you have Allwebco hosting or do have a hosting cgi-bin: Now that you have downloaded formmail, use a plain text editor like Notepad and edit the refers in the formmail.cgi or formmail.pl. Be sure if you have formmail.pl that you edit your contact.htm or quotes.htm and change the "formmail.cgi" to "formmail.pl" on the "post" line (first line of the form). To edit the refers, open the formmail script, and find the following line (about 30 lines down):

@referers = ('scriptarchive.com','');

Change the above shown in red to your domain and your IP. If you do not know you IP you can edit this like the following:

@referers = ('yourdomain.com','www.yourdomain.com');

It's best to put the www in the refers also even if you know your IP. You can have all three like the following (using your IP number from your hosting company):

@referers = ('yourdomain.com','www.yourdomain.com','');

Step 4:
Check the "contact.htm" or "quotes.htm". If you have uploaded "formmail.cgi" be sure the HTML page <form> line (shown below) is edited for "formmail.cgi", or If you uploaded "FormMail.pl" edit the HTML page <form> line to call for "FormMail.pl" (uploaded files are case sensitive). Edit for either .cgi or .pl if needed. Click for more details.

<form method="post" action="http://your-web-domain.com/cgi-bin/FormMail.pl" target="_top">

Optional: Adding Extra Security (recommended):
To add more security and prevent auto-hacking of your form script, rename the downloaded "FormMail.pl" to a unique name like "rsender.pl" or something similar. You can name the file any name. Edit the "contact.htm" or "quotes.htm" with the name of your re-named script as shown below.

<form method="post" action="http://your-web-domain.com/cgi-bin/rsender.pl" target="_top">

Step 5 and 6:
Now you must upload the formmail.cgi or FormMail.pl (or rsender.pl) to your hosting area using FTP software. Once the script is uploaded, you must CHMOD 755 the file if you have UNIX type hosting. To CHMOD 755 a script right click on the script in the FTP window, choose "CHMOD" then type 755 in the small box. Click below to see this visually in CuteFTP.

NOTE: CHMOD may also be called "File Attributes", "File Properties" or "Permissions" in different software


NOTE: If you have a Windows hosting setup rather than UNIX, you must contact your hosting company to set the formmail file permissions.

Step 7:
Now open your contact.htm on your website and test the form. If you are getting a "file not found" error when you submit the form, do the steps on this page from the start again, or, click here to see other possible problems with formmail.

Note about the e-mail you can use:
Formmail will not let you e-mail outside of your Domain name. e.g. If your Domain is momswharehouse.com your e-mail address on the contact.htm or quotes.htm can not be an MSN.com email address or an AOL or any other, it must be ????@Momswharehouse.com. This is a security feature in the formmail script so you cannot relay e-mails out of another mail server.

Related Topics:
Contact form setup details
Adding fields to the contact or quote form
E-mail Help and redirection
Setting up the contact form with another script
Setting up the contact form using Formmail PHP

Download FormMail (or use alternate download)
Alternate Formmail Script Support Page
Setting Up FormMail
Download CuteFTP

Allwebco Template Support

Allwebco Website Template Support

Website Template Support
Website Template Support