############################################################################## # Cliff's Form Mailer Version 1.0 # # Copyright 1998 Shaven Ferret Productions # # Created 6/9/98 # # Available at http://www.shavenferret.com/scripts # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1998 Shaven Ferret Productions All Rights Reserved. # # # # This script can be used\modified free of charge as long as you don't # # change this header thing, or the part that gives me credit for writing # # script in the e-mail. If you really need to remove this part, go to # # http://www.shavenferret.com/scripts/register.shtml . By using this script # # you agree to indemnifyme from any liability that might arise from its use. # # In simple English, if this script somehow makes your computer run amuck # # and kill the pope, it's not my fault. # # # # Redistributing\selling the code for this program without prior written # # consent is expressly forbidden. # ############################################################################## Hello. These are the instructions for how to install the form mailer. You should have the following files... * form.cgi ----- the script that mails the forms * form.html ---- an example of a way to use the script * response.txt - an example of a response to send * readme.txt --- the file you're reading now If you're missing any of these files, you can download them from http://www.shavenferret.com/scripts/form First of all, open form.cgi in a text editor. If perl is not located at /usr/bin/perl on your system, change the first line of it to #! and then the location of perl. If you don't know where perl is, ask your system administrator, or telnet in and type "whereis perl" at the command prompt. Scroll down to line 22, and change the variable to the location of sendmail. Now scroll down to line 27 and enter the names of each field that you plan on making required. Next, scroll down to line 31 and enter your email address. Just remember to put a backslash (\) before the @. Upload the file to somewhere where you can run cgi scripts, and chmod it to 755. The next thing you'll probably want to do is modify the form.html file. You don't really need to use this, what my script does is pretty much take any submitted information and mail it to you. However, there are a three names that the script will process differantly. They are: * email : This should be the email address of whoever's submitting the information * subject: This will be used as the subject line when the email is sent * response: This is the text file that will be mailed to whoever is listed in email. Put the text file in the same directory as the form.cgi file. If you choose to use the form.html file, remember to change line 4 so it points at the form.cgi file. You will probably want to modify response.txt, or just use a differant file. No perl or html is used in this. It's just plain text, what you type is what will be sent. ****************************************************************************** * Troubleshooting ****************************************************************************** * I get a 500 Internal Server Error when using the script. * Make sure you've changed the first line of form.cgi to #! and then the path to perl on your system * Make sure you've uploaded the file as ascii, not binary. * Make sure you've set the permissions for the file to 755. * Make sure that you've change /usr/lib/sendmail to the path to your mail program in line 24 of form.cgi. * Make sure that you put a backslash (\) before the @ in your e-mail address ****************************************************************************** If you still need help, go to http://www.shavenferret.com/scripts/help.shtml