Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 06:26:54 AM

Pages: [1] 2   Go Down
  Print  
Author Topic: FormMail problems  (Read 1701 times)
accom.com
Pong! (the videogame) Master
*****
Offline Offline

Posts: 23


WWW
« on: January 28, 2004, 08:56:07 PM »

I have just installed the FormMail Version 3.11c1 from  http://nms-cgi.sourceforge.net/ which was recommended to me by Lunarpages after having spam / virus problems with my original formmail script. I think I have configured everything correctly, however I am getting a 403 "Forbidden" error:-
"Forbidden
You don't have permission to access /cgi-bin/FormMail.pl on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request"

when testing from a form located at http://www.accom.com.au/salesenquiry.html.

As far as I can tell, everything is configured correctly, and I have set permissions to 755.

The script is configured as follows:-

# 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    = 3;
 $mailprog          = '/usr/sbin/sendmail -oi -t';
 $postmaster        = 'admin@accom.com.au';
 @referers          = qw(accom.com.au www.accom.com.au frogandtoad.com.au www.frogandtoad.com.au narollah.com.au www.narollah.com.au);
 @allow_mail_to     = qw(mhalloran@accom.com.au mail.accom.com.au mail.narollah.com.au mail.frogandtoad.com.au);
 @recipients        = ();
 %recipient_alias   = ();
 @valid_ENV         = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
 $locale            = '';
 $charset           = 'iso-8859-1';
 $date_fmt          = '%A, %d %B, %Y at %H:%M:%S';
 $style             = '';
 $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

Does anyone have an idea of why it isn't working? Would appreciate your urgent help and assistance, as I am not sure what I need to do next to make this work!

Thanks
Matt.
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #1 on: January 28, 2004, 09:08:53 PM »

Try changing the name to something other than formmail.cgi FormMail.cgi etc Those names have been banned because of mass spammer attacks, trying to use the server to send out emails.

Try renaming to: mailer.pl or something like that. It will work just fine, just wont have the same issue with spammers.
Logged

Anonymous
Guest
« Reply #2 on: January 29, 2004, 12:57:25 AM »

Thanks Mate! Changed the file name and it works fine now...

Regards,
Matt.

PS - How's the study going?
Logged
accom.com
Pong! (the videogame) Master
*****
Offline Offline

Posts: 23


WWW
« Reply #3 on: January 29, 2004, 01:00:34 AM »

Thanks Mate!

I changed the file name and it works fine....

Regards,
Matt.

PS - How's the study going?
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #4 on: January 29, 2004, 07:08:32 AM »

Haha... let just say Math isn't my strong area or more accurately of no interest to me - so I've got 5 math courses, and that its.. so ya.. not so fun Sad
Logged

FallenDruid
Trekkie
**
Offline Offline

Posts: 12


« Reply #5 on: January 31, 2004, 12:01:32 PM »

I'm having about the same problem...except mine comes up as an internal server error or misconfiguration.
The form is yumapest.com/feedback.php
Permissions on the script are set to 755

Relevant portion of the script is this:

BEGIN
{
  $DEBUGGING         = 1;
  $emulate_matts_code= 0;
  $secure            = 1;
  $allow_empty_ref   = 1;
  $max_recipients    = 1;
  $mailprog          = '/usr/sbin/sendmail -oi -t';
  $postmaster        = 'feedback@yumapest.com';
  @referers          = qw(www.yumapest.com);
  @allow_mail_to     = qw();
  @recipients        = ();
  %recipient_alias   = ('1' => 'feedback@yumapest.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:%S';
  $style             = '';
  $no_content        = 0;
  $double_spacing    = 1;
  $wrap_text         = 0;
  $wrap_style        = 1;
  $send_confirmation_mail = 0;

the file name is qrmail1.cgi

Any ideas?
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #6 on: January 31, 2004, 12:18:21 PM »

Did it get uploaded as an ASCII file?
Logged

FallenDruid
Trekkie
**
Offline Offline

Posts: 12


« Reply #7 on: January 31, 2004, 12:27:58 PM »

Yes, it did get uploaded as ascii.

Just to make sure, I reuploaded it after specifically checking and making sure it was uploading in asacii.

Also, it opens fine in the cpanel filemanager edit thingy.
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #8 on: January 31, 2004, 12:35:18 PM »

Couple things to check that are dependant on your server.

In CPanel's main page bottom left of the left column you will see a list of paths to perl sendmail etc. Make sure that the code your uploading contains the correct paths to perl and sendmail etc (it may be slightly different depending on your server).

- Ed
Logged

Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #9 on: January 31, 2004, 12:37:36 PM »

Also:
@allow_mail_to = qw(enter your email address here);
@recipients = ();


and:

@referers = qw(www.yumapest.com);

should be:

@referers = qw(www.yumapest.com yumapest.com);
Logged

FallenDruid
Trekkie
**
Offline Offline

Posts: 12


« Reply #10 on: January 31, 2004, 12:43:31 PM »

The perl path is correct, though it has a switch I'm not familiar with (-wT?)
And I've double checked the sendmail path, it's also right.

Anybody got the name of a decent php mailing script?

Any other good mail scripts out there?  Preferably, easy to set up?
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #11 on: January 31, 2004, 12:54:47 PM »

http://twebman.lunarpages.com/php/

This one is pretty popular around here! Works well too.
Logged

FallenDruid
Trekkie
**
Offline Offline

Posts: 12


« Reply #12 on: January 31, 2004, 01:11:55 PM »

Thanks, that one is actually working.

Wow. Smile
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #13 on: January 31, 2004, 01:51:15 PM »

Awesome!

How easy was it to install? I'm thinking of using it on my site in the future instead!
Logged

leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 13870


WWW
« Reply #14 on: January 31, 2004, 02:23:15 PM »

Quote from: Kata
How easy was it to install?


Seeing that he installed it and got it working in approx. 15 minutes, should give you a hint.  Smile

Quote from: Kata
I'm thinking of using it on my site in the future instead!


LOL!  That's great, Ed, but please do hurry up, because then you can be the "Guru" of the mail form threads and answer ALL of them, and then we can sit back and relax and not worry about those anymore!  Wink  Luff Ya

And look, this is just a one pager!  The one's I assist with turn out to be 10 pages or more!  LOL!  Smile

(* bowing up and down to this upcoming mail form guru)  Luff Ya
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to: