PDA

View Full Version : FormMail.pl unique problem


oven
11-02-2003, 03:38 AM
Who is good in this ?

Matt's FormMail file configured well, I even downloaded a new, second, Formmail script to be sure it's not corrupted. Opened it from it's original folder right to Dreamweaver. Transformed using WS_FTP in ASCII mode into my server's 'www' folder's cgi-bin folder and CHMODed Formail.pl to 755. When I submit the test form below mentioned error appears while in the address bar shows http://www.mydomain.com/cgi-bin/FormMail.pl
I tried changing the file name to MailForm.pl or used .cgi extention and always the same. Form is configured well too. This is bizarre.

Configurations:
#!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('mydomain.com','IP_number');
@recipients = &fill_recipients(@referers);
or I tried:
@recipients = ('^usermame@mydomain.com');

My absolute path for FormMail.pl is:
"/home/username/www/cgi-bin";

FormMail.pl is in:
......com/cgi-bin/FormMail.pl

form is in:
......com/poll/polla.html

From ERROR log:
File does not exist: /home/username/public_html/500.shtml
Premature end of script headers: /home/username/public_html/cgi-bin/FormMail.pl

THIS APPEARS ON THE screen AFTER SUBMIT:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mydomainname.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I delete any file-s from the 'public_html' folder they automaticaly disappear from the 'www' folder too. They are related in some sence. If file does not exist(?), all of my site files must be uploaded into the www folder where among others also the cgi-bin is, why is the error log reading it as in public_html folder ?

What do you recon ?

Best regards !!!


:confused:

oven
11-03-2003, 07:35 AM
Thanks "all" for the helping replies. Very much apreciated all of you.
Browser reads from 'public_html' folder and the 'www' folder is having the same files in as the main one, well that's the system working this way, heh i keep it that way.

BUT !!!

Matt's FormMail.pl is still no bloo workin :o(((

I downloaded a new copy of the script again - it's original, ASCII mode transform, CHMOD 755 all correct, configs proper too:

#!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('mydomain.com','IP_number'); ....my details filled in
@recipients = &fill_recipients(@referers);
or I tried:
@recipients = ('^usermame@mydomain.com'); ....my email filled in

Form ACTION or RECIPIENT configured just fine. I didn't miss anything, also "POST" in capitals.

I understand script is sensitive to upper or lower cases. 'recipient' is not in UPPERCASE letters

Nothing outside <form></form> tags.

Submiting doesn't bring 'forgot something message' only the error.

Nothing removed from the script, even like (;) on ends.

I am crying__

oven
11-04-2003, 12:28 PM
It works now, for some reason, dreamveaverMX was changing line 61 to: e"t_date; it of course should be: &get_date;

After I found out, I still had to upload with the wrong #Retrieve Date
/coz for some reason I can not change it in the dreamweaver, when I fix and save changeges, next time when I open the file it's wrong again/
...And then fix by editing the remote file on the server.
Rado