WEB HOSTING SERVICES

Customer Support


CGI Tutorial

Form Mail

Auto Responders

Shopping Cart

MJourney Control Panel

Making CGI-scripts Server Independent

Using Server Side Include Commands (SSI)


Form Mail Instructions
Easy to install through your Control Panel

FormMail.cgi is a perl script that you can install easily using your Personal Control Panel.


Click here to get FormMail.pl if you need to customize the script
<Shift>Click here to get the README file

How to configure your HTML files to use FormMail.pl

There is one line that has to be altered and two lines that have to be added to your form. First, the line that begins the form should look like this:
<FORM action="/cgi-bin/FormMail.pl" method="POST">

The following two entries must be entered into the form for this perl script to work properly:
The "value" in both lines should be changed to reflect the subject title and your e-mail address respectively.


<input type=hidden name="subject" value="Your Subject">
<input type=hidden name="recipient" value="email@your.host.com">

The following entry will send to user to an html file of your choice after successfully filling out the form.

<input type=hidden name="redirect" value="http://www.yourdomain.com/thanks.htm">

Replace thanks.htm with your own file name and make sure that you use the full URL including http:// for this line.

Back

Auto Responders Instructions
Complex to Install for Beginners

Autorespond.pl is a perl script that you can place in your "cgi-local" directory that will let you mail information from a form on your web site to any Internet mailbox and will send back to the customer an e-mail message via text file that you place in your home directory.

HOW TO GET Autorespond.pl

Click here to get Autorespond.pl
<Shift>Click here to get the README file

How to configure the file -- Autorespond.pl

There are only two lines that have to be changed in the Autorespond.pl script for it to work -

  1. You have to enter your domain information at the @referers line:
    @referers = ('www.yourdomain.com','yourdomain.com','206.31.72.203');
    This array allows you to define the domains that you will allow forms to reside on and use your FormMail script. If a user tries to put a form on another server, that is not www.anotherdomain.com, they will receive an error message when someone tries to fill out their form.

    This means that you replace yourdomain.com with your own domain name and the ip address with your assigned ip address.

  2. The line that begins with "$message =" must include the real path to your info.txt file (or whatever you want to call the file).

The rights on the Autorespond.pl file should be 755.

To do this you must log into your account using telnet. This is the only type of work that you should do in a telnet session for security reasons. If you prefer that we do this for you, just send e-mail to support@mjourney.com and request that we change the rights on a cgi script. Include your username in the message.

From the command line type:
chmod 755 Autorespond.pl
from within your cgi-local directory. This command will change the rights of the file to be executable by everyone -- this is most likey the reason that your script may not work correctly!

How to configure your HTML files to use Autorespond.pl

There is one line that has to be altered and two lines that have to be added to your form. First, the line that begins the form should look like this:
<FORM action="/cgi-local/Autorespond.pl" method="POST">

The following two entries must be entered into the form for this perl script to work properly:
The "value" in both lines should be changed to reflect the subject title and your e-mail address respectively.


<input type=hidden name="subject" value="Your Subject">
<input type=hidden name="recipient" value="email@yourdomain.com">

The following entry will send to user to an html file of your choice after successfully filling out the form.

<input type=hidden name="redirect" value="thanks.htm">

Replace thanks.htm with your own file name.

Back

FAQ, PRICES, SUPPORT, PRESS, CLIENTS, WHY MJ,  ORDER!

Copyright © 1997, 1998 MJourney Communications. All rights reserved.