To set up a FormMail cgi script:

  1. First, download the formmail.zip file and unzip it.
  2. For Domain Accounts on Unix, open up formmail.cgi in any text editor (Notepad or Wordpad work best). Change the variables near the top of the script to meet your specifications.
    • @referers = ('www.yourdomain.com', 'yourdomain.com');

    For Personal Accounts, you do not need to edit the formmail.cgi script.

  3. Next, change the mail.html page to reflect your information. Open these files in Notepad or Wordpad and change the line in between the < ! --Change this line -- > tags to include your email address rather than the dummy one in there now.
  4. Upload the mail.html page to your main home page directory using a standard FTP program. Make sure you use ASCII transfer and not binary.
  5. Next, create a cgi-bin directory in your main directory (name it 'cgi-bin'... nothing else) and upload the formmail.cgi file into that directory. Again, make sure you use ASCII transfer and not binary.
  6. Now for the trickiest part - telnet to 'shell.w-link.net' and log in with your username and password. You can use any telnet client (you can go to Start, Run, and type 'telnet shell.w-link.net' in Windows 95). Once logged in, type 'cd public_html' and hit enter. Next, type 'cd cgi-bin' and hit enter. You will now be in the directory with your formmail.cgi file. In here, type 'chmod a+x formmail.cgi' and hit enter. This will give world executable permissions on this one file. You can exit out of telnet after this.
  7. To use the form, go to http://www.w-link.net/~username/mail.html, fill out the form and hit Submit.
  8. Wait a few seconds, then check your mail to see if you received the form.
  9. If you get an Internal Server Error (number 500 or something), you missed a step somewhere along the way. Go back over everything, paying attention to great detail as one thing missed will prevent the script from running.

Call us: (206)361-8785,  Toll Free: (888)361-4NET
© 2001-2007 WORLDLINK Internet Services