• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 461
  • Last Modified:

SendMail CGI script not working

I am testing a site currently in our prototype development area.  Once it tests clean we can move it into production.  Its running on RedHat/Apache
But right now there is a contact form that is not working.
If you go to: http://rh.magpieprototype.com/morphosisstudio.com and click on the [Submit Email Address] button you will see the error.
Here is the CGI script "cwmmail.cgi":  http://hhe.cc/download/cwmmail.txt
Sendmail is located at: /usr/lib/sendmail
Perl is located at: /usr/local/bin/perl

Let me know if you have any ideas or require more information.

Thank you in advance.
0
Cappper
Asked:
Cappper
2 Solutions
 
TintinCommented:
I certainly wouldn't recommend running that code you have.  It has some very clunky constructs and out of date CGI parsing methods.

But, disregarding that, the most likely cause of the error is the script either has Windows end of line characters and/or missing execute permission.

If you add:

use CGI::Carp 'fatalsToBrowser';

at the top of the script, you'll either see the actual error, or if you still get a "500 internal server" error, it means something fundamental is wrong with the script, eg: permissions, path to perl, etc.
0
 
NopiusCommented:
Cappper, just look into apache error_log (if you have access to) and copy-paste related errors here.
0
 
CappperAuthor Commented:
The script was not designed by myself or our company.  But instead of spending time troubleshooting the issue we are just going to re-write it.

Thanks for your help.
0
 
lin lingCommented:
hai ejjfa  zjrjf  zjefja f f
0
 
aite jajfjCommented:
gskgk xkrk gksolg xkrgk 123
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now