Lunarpages Web Hosting Forum

Author Topic: Unable to get NMS Scripts formail working  (Read 3287 times)

Offline Adloveadmin

  • Newbie
  • *
  • Posts: 3
Unable to get NMS Scripts formail working
« on: May 20, 2009, 05:41:30 AM »
Well...

I've followed the instructions at http://www.lunarforums.com/lunarpages_how_tos/setting_up_nms_formmail-t18221.0 and http://www.lunarforums.com/lunarpages_c_perl_cgi/formmailpl_bad_gateway-t33731.0.html;msg253395#msg253395 and just can't get the nms scripts formmail to work.  The "Shebang" line referenced in the posts doesn't exist in the .pl file.

Here is the pertinent info from the formail.pl file (renamed FM.pl).  Adlove.org is the site in question and it's on a Windows server.  Files were uploaded using ASCII transfer.
----------
#!C:/perl/bin/perl.exe
#
# NMS FormMail Version 3.14c1
#

...snip snip...

  $DEBUGGING         = 1;
  $emulate_matts_code= 0;
  $secure            = 1;
  $allow_empty_ref   = 1;
  $max_recipients    = 5;
  $mailprog          = 'SMTP:adlove.org';
  $postmaster        = '';
  @referers          = qw(adlove.org localhost);
  @allow_mail_to     = qw(webmaster@adlove.org localhost);
  @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;
  $address_style     = 0;
  $send_confirmation_mail = 0;
  $confirmation_text = <<'END_OF_CONFIRMATION';
From: webmaster@adlove.org
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION
----------

The error generated when using a test form from the web site is...

----------
Content-Type: text/html; charset=iso-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Error</title>
 </head>
 <body>
  <h1>Application Error</h1>
  <p>
   An error has occurred in the program
  </p>
  <p>
   connect to &#91;adlove.org:25&#93;: Unknown error at &#40;eval 8&#41; line 70.

  </p>
 </body>
</html>
----------

Anyone have any ideas?  I'm at my wits end.

Thank you.