CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Having Issues With FormMail.PL ,Bluehost: Edit Log



Mbconsulting
Novice

Feb 22, 2017, 5:23 PM


Views: 6831
Having Issues With FormMail.PL ,Bluehost

Here is the form page: I am trying to move this site to Bluehost. I have included the code here and attached The FormMail.Pl File.Thanks.
http://testsite.canavansdeli.com/contact-us.htm2

I keep getting this message:
500 Server Error

A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
URL: http://testsite.canavansdeli.com/cgi-bin/FormMail.pl

Here Is Some of the Formmail Code:Full Code is Attached. using version # NMS FormMail Version 3.14c1

Code
#!/usr/bin/perl  
#
# NMS FormMail Version 3.14c1
#

use strict;
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog
$encryptuser $encryptprog @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
$address_style
);

# PROGRAM INFORMATION
# -------------------
# FormMail.pl Version 3.14c1
#
# 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;
$encryptuser = '';
$encryptprog = '';
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '';
@referers = qw(testsite.canavansdeli.com);
@allow_mail_to = qw(bbraker@mbconsultingnj.co);
@recipients = (bbraker@mbconsultingnj.co);
%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;
$address_style = 0;
$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



(This post was edited by FishMonger on Feb 22, 2017, 8:38 PM)
Attachments: FormMail.pl (80.0 KB)


Edit Log:
Post edited by FishMonger (Veteran) on Feb 22, 2017, 8:38 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives