Lunarpages Web Hosting Forum

Author Topic: Yet another issue with FormMail  (Read 1458 times)

Offline JadeCat

  • Space Explorer
  • ***
  • Posts: 7
    • http://www.wyldfires.com
Yet another issue with FormMail
« on: February 18, 2005, 01:53:36 PM »
I *did* have FormMail.pl working, kinda.

In its first incarnation, I was able to:
a) direct the user to a success page
b) direct the user to a failure page.

However, I was getting an Undeliverable Message in the receipient email box. Basically, I was getting the bounced message, saying it could not deliver to "classes@halberstadtfc"

The bounced message contained all the necessary FORM information, so I DO know the form on the HTML page is working fine.

Looking at the .pl script, I noticed that I had mistakenly put in:

@allow_mail_to     = qw(classes@halberstadtfc localhost);

So, aha! I figured that I could just *fix* this little error to:

@allow_mail_to     = qw(classes@halberstadtfc.com localhost);

That should take care of the "bounced email issue".

Then, it broke. Now, whenever I hit submit:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request

I DID follow leighsww's instructions at:
http://www.lunarforums.com/forum/viewtopic.php?t=18221

I read the README file and read some threads (there being too many), and tried

@allow_mail_to     = qw(classes@halberstadtfc.com);

to see if that would work.

Same error.

And yes, I did change the FormMail.pl to mailscript.pl, and since outside of the bounced error message, the form itself seemed to work fine.

Any insight would help.

thanks
jade

The script is:

----------------------------------------------
BEGIN
{
  $DEBUGGING         = 1;
  $emulate_matts_code= 0;
  $secure            = 1;
  $allow_empty_ref   = 1;
  $max_recipients    = 5;
  $mailprog          = '/usr/sbin/sendmail -oi -t';
  $postmaster        = 'classes@halberstadtfc.com';
  @referers          = qw(www.halberstadtfc.com localhost);
  @allow_mail_to     = qw(classes@halberstadtfc.com 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 = 1;
  $confirmation_text = <<'END_OF_CONFIRMATION';
From: classes@halberstadtfc.com
Subject: Class Registration

Thank you for your registering for classes at Halberstadt Fencers Club
We look forward to seeing you at the club!.

END_OF_CONFIRMATION

Offline JadeCat

  • Space Explorer
  • ***
  • Posts: 7
    • http://www.wyldfires.com
Re: Yet another issue with FormMail
« Reply #1 on: February 18, 2005, 02:04:26 PM »

leighsww

  • Guest
Yet another issue with FormMail
« Reply #2 on: February 18, 2005, 02:18:21 PM »
Did you remember to upload the script in ASCII and chmod (set permissions) to 755? That is usually what causes the "Internal Server" error message.

If that still doesn't do it, make sure that when you changed the script, that it didn't truncate anything. Compare the bottom of the script with the original to make sure everything is intact. If you uploaded via cPanel, sometimes it truncates the script, thus you need to make sure you're not missing any codes.

If that still doesn't do it, then PM (Private Message) me your username and password, and I'll go in and take a look.

You can change your password when I'm done.

Offline JadeCat

  • Space Explorer
  • ***
  • Posts: 7
    • http://www.wyldfires.com
Yet another issue with FormMail
« Reply #3 on: February 18, 2005, 03:23:59 PM »
Quote from: leighsww
Did you remember to upload the script in ASCII and chmod (set permissions) to 755? That is usually what causes the "Internal Server" error message.

If that still doesn't do it, make sure that when you changed the script, that it didn't truncate anything. Compare the bottom of the script with the original to make sure everything is intact. If you uploaded via cPanel, sometimes it truncates the script, thus you need to make sure you're not missing any codes.

If that still doesn't do it, then PM (Private Message) me your username and password, and I'll go in and take a look.

You can change your password when I'm done.


I did change the permissions to 755.  Will double check, and will double check the truncation issue. I had loaded it up with cPanel.

I didn't know about cpanel truncating scripts. Thanks.

I will reply with the results!

jade

Offline JadeCat

  • Space Explorer
  • ***
  • Posts: 7
    • http://www.wyldfires.com
Yet another issue with FormMail
« Reply #4 on: February 18, 2005, 03:32:32 PM »
leighsww,

I checked the script, and it did seem to have been truncated. I uploaded the script again, DOUBLE checked to ensure it wasn't truncated, then reset permissions.

That seems to have done it. I was kicking myself trying to figure out what "typo" or error I made, since it was "somewhat working" earlier.

DANKE, DANKE, DANKE!~ :yey:

jade

leighsww

  • Guest
Yet another issue with FormMail
« Reply #5 on: February 18, 2005, 03:52:33 PM »
LOL, yes that truncating needs a whippin'!  :whip:

Good to know your forms are back in business!  :thumb:  :yey:  :love: