I've used this script on lots of other sites, and never got this problem before.
The HTML form calls for posting to mydomain.com/cgi-bin/contactForm.pl with a recipient value of 1.
Here's the top part of the form
Anybody that can offer a clue what I've done wrong?
The steps to perl and sendmail are correct for the hosting server.
All help appreciated.
Thanks,
Donna
The HTML form calls for posting to mydomain.com/cgi-bin/contactForm.pl with a recipient value of 1.
Here's the top part of the form
Code:
#!/usr/bin/perl
#
# $Id: FormMail.pl,v 2.22 2003/02/21 13:55:24 nickjc Exp $
#
use strict;
use POSIX qw(locale_h strftime);
use Text::Wrap; # Er for wrapping :)
use Socket; # for the inet_aton()
use CGI qw(:standard);
use vars qw(
$DEBUGGING $emulate_matts_code $secure
$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 $Revision: 2.22 $
#
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <[URL unfurl="true"]http://www.gnu.org/licenses/gpl.html>[/URL] or
# the Artistic License
# <[URL unfurl="true"]http://www.perl.com/pub/a/language/misc/Artistic.html>[/URL]
#
# 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 = 0;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail';
$postmaster = '';
@referers = qw(mydomain.com localhost);
@allow_mail_to = qw(webmaster@mydomain.com info@mydomain.com
events@mydomain.com register@mydomain.com
letters@mydomain.com publicity@mydomain.com
research@mydomain.com outreach@mydomain.com localhost);
@recipients = ();
%recipient_alias = ('1' => 'webmaster@mydomain.com',
'2' => 'info@mydomain.com',
'3' => 'events@mydomain.com',
'4' => 'register@mydomain.com',
'5' => 'letters@mydomain.com',
'6' => 'publicity@mydomain.com',
'7' => 'research@mydomain.com',
'8' => 'outreach@mydomain.com);
@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:%Z';
$style = 0;
$no_content = 0;
$double_spacing = 1;
$wrap_text = 1;
$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
#
# USER CONFIGURATION << END >>
# ----------------------------
# (no user serviceable parts beyond here)
Anybody that can offer a clue what I've done wrong?
The steps to perl and sendmail are correct for the hosting server.
All help appreciated.
Thanks,
Donna