Lunarpages Web Hosting Forum

Author Topic: 3 hours and still no working FormMail  (Read 2290 times)

Offline joemarchesi

  • Newbie
  • *
  • Posts: 2
3 hours and still no working FormMail
« on: June 09, 2003, 07:51:22 PM »
:x

Can you please help?  I've tried to follow the instructions on the http://lunarpages.com/formmail_fix.html link but have had no luck.

Here is the form I created:  

http://www.films4life.com/form_test.html

Script I am using is at bottom (only pasted the top part with the modifications that were required)

I've put the FormMail.pl in my cgi folder in public_html, and I believe the permissions are set to 755.  The submit button gives me an error.  Am I missing something here?  The original cgi instructions talked about an email template, but nothing in this new link did, so I assume that is not needed for this new script?

I could really use your help!

Joe




#!/usr/bin/perl -wT
#
# NMS FormMail Version 3.05c1
#

use strict;
use vars qw(
  $DEBUGGING $emulate_matts_code $secure %more_config
  $allow_empty_ref $max_recipients $mailprog @referers
  @allow_mail_to @recipients %recipient_alias
  @valid_ENV $date_fmt $style $send_confirmation_mail
  $confirmation_text $locale $charset $no_content
  $double_spacing $wrap_text $wrap_style $postmaster
);

# PROGRAM INFORMATION
# -------------------
# FormMail.pl Version 3.05c1
#
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licenses/gpl.html>  or
# the Artistic License
# <http://www.perl.com/pub/a/language/misc/Artistic.html>
#
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.

# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
  $DEBUGGING         = 1;
  $emulate_matts_code= 0;
  $secure            = 1;
  $allow_empty_ref   = 1;
  $max_recipients    = 5;
  $mailprog          = '/usr/lib/sendmail -oi -t';
  $postmaster        = '';
  @referers          = qw(www.films4life.com);
  @allow_mail_to     = qw(joemarchesi@films4life.com);
  @recipients        = ();
  %recipient_alias   = ();
  @valid_ENV         = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
  $locale            = '';
  $charset           = 'iso-8859-1';
  $date_fmt          = '%A, %B %d, %Y at %H:%M:%S';
  $style             = '/css/nms.css';
  $no_content        = 0;
  $double_spacing    = 1;
  $wrap_text         = 0;
  $wrap_style        = 1;
  $send_confirmation_mail = 0;
  $confirmation_text = <<'END_OF_CONFIRMATION';
From: you@your.com
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION

Offline Ed

  • Berserker Poster
  • *****
  • Posts: 5156
    • Joke A Whenever
3 hours and still no working FormMail
« Reply #1 on: June 09, 2003, 09:02:35 PM »
The error you are getting is an internal server error. Chances are that  the file somehow got uploaded as a binary file instead of an acsii file. Did you use CPanel file manager to uplaod it? Also, if that doesn't work (uploading in ascii and setting permissions to 755), try redownloading the script and making the appropriate adjustments to it using a program like note pad that has no formatting options. Sometiems a program like wordpad word, or some other editor like that will add hidden things to the text file that will cause errors when the server attempts to run it.

Keep us posted on your progress!

- Ed :-)

Offline joemarchesi

  • Newbie
  • *
  • Posts: 2
thanks
« Reply #2 on: June 11, 2003, 04:53:56 AM »
Thanks Kata -

Uploading from C-panel did the trick!  Much appreciated,

Joe