Issues With Formmail Help

Here is the form page: I am trying to move this site to Bluehost. Thanks.
http://testsite.canavansdeli.com/contact-us.htm

I keep getting this message: I can not find any @referrers in Formmail code
Bad Referrer - Access Denied
The form attempting to use this script resides at http://testsite.canavansdeli.com/contact-us.htm, which is not allowed to access this program.

If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

Add ‘testsite.canavansdeli.com’ to your @referers array.

Here Is the Formmail Code:Post will not let me post code using version # NMS FormMail Version 3.14c1

#!/usr/bin/perl -wT
#
# NMS FormMail Version 3.14c1n
#

I’m not sure why this was in the PHP forum. FormMail is a Perl program. You should get help here…

Thanks.

I’m not a Perl programmer, but I’m not clear, is your problem getting FormMail to work or in moving it to a new host?

Have you done the necessary configuration, and in particular have you added testsite.canavansdeli.com to the @referers line (line 47)?

Incidentally, you can post code here by typing 3 backticks ``` (usually the top left key) on a line of its own then pasting your code and then placing 3 back ticks on a line underneath the code. (I believe putting it between [code] and [/code] also works.)

Can not find @referers line here is the code Tried to post the code with directions you gave and did not work.
Thanks

Brian

The program file is over 3000 lines of code, so I guess we wouldn’t want all that posted here, but the following should be lines 38 - 68 of an unconfigured FormMail.pl file. You don’t say if you have done any of the configuration?

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(dave.org.uk 209.207.222.64 localhost);
  @allow_mail_to     = qw(you@your.domain some.one.else@your.domain 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: you@your.com
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION

I did make the changes on @referers Now I get 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

So can you post what the @referers line now says? No need to try to format it.

No, I working with someone else work. I am just trying to move the site to a new host. Now I am getting a 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

Sorry. Thanks for your help. Here is my code: Tried to send it told me I can not mention 2 users? What is that?
BEGIN

Another way to post your code is to paste it into your post, highlight it and then press the </> link/button on the formatting line.

EDIT. If that fails, copy the code into a .txt file and upload that with your post.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.