|
This article applies to the Everything Unlimited Unix hosting plan. If you currently have the Everything Unlmited Windows plan, please submit a ticket for help in setting up an interactive form.
First, visit this site: Matt's Script Archive and download the file Formmail.zip Unzip the file and then open it in notepad or any other simple text editor and make the following changes: The first line of the file will read: #!/usr/bin/perl Change this to read: #!/usr/local/safe/bin/perl Next you will want to make a few other changes a few lines down to the following fields: $mailprog = '/usr/lib/sendmail -i -t' Change the sendmail path to: $mailprog = '/usr/local/safe/bin/sendmail -i -t'; Also: @referers = ('scriptarchive.com','209.196.21.3'); Change this to: @referers = ('www.yourdomain.com','yourdomain.com'); Be sure to put your domain in there and don't leave out the parenthesis and apostrophe's around it. You should not have to change the @recipients field. Now save the changes you made and close the file. Next you will need to upload the file to your server using an FTP program. You can find help on using an FTP program FTP_Basics here. Upload the file into your cgi-bin folder and then change the permissions to 755. On most ftp programs this is done by right clicking on the file and choosing "file attributes", "permissions" , or "UNIX CHMOD". Your Formmail.pl file is now ready. Next you will need to have your html form submit the data to theFormMail.pl file. This is done in the beginning html tag for your form. Sub-category: Scripts_and_Programs |