?
Solved

SendMail CGI script not working

Posted on 2007-04-10
5
Medium Priority
?
439 Views
Last Modified: 2016-10-08
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
Comment
Question by:Cappper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 1000 total points
ID: 18885969
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
 
LVL 27

Assisted Solution

by:Nopius
Nopius earned 1000 total points
ID: 18886228
Cappper, just look into apache error_log (if you have access to) and copy-paste related errors here.
0
 
LVL 1

Author Comment

by:Cappper
ID: 18891438
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
 

Expert Comment

by:lin ling
ID: 41834748
hai ejjfa  zjrjf  zjefja f f
0
 

Expert Comment

by:aite jajfj
ID: 41834751
gskgk xkrk gksolg xkrgk 123
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question