CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Debugging CGI script


New User

Nov 12, 2003, 1:46 AM

Post #1 of 2 (1043 views)
Debugging CGI script Can't Post

Frown Help, I am a beginner to perl/cgi scripting. I have written the attach cgi script which email detail from a form. In a telnet session, using the 'perl' command to debug the script I am getting the following error message:

sendmail: fatal: file /etc/postfix/ parameter mail_owner: unknown user n
ame value: postfix
Content-Type: text/html

I am unable to first of all understand the message or solve it. Could somebody please help.
Attachments: email.cgi (2.14 KB)

Thaumaturge / Moderator

Nov 12, 2003, 2:12 AM

Post #2 of 2 (1042 views)
Re: [zakasa] Debugging CGI script [In reply to] Can't Post

That's a sendmail error. You might want to run it past your local sendmail administrator. Looking at the sensmail logs might give you more clues.

There's a potential problem with this line:

To: sam\

I don't think you want that space between \ and @. That might perhaps trigger an "unknown user" message.

If you don't mind, I have a couple of other comments on your code:

1/ You don't have "use strict" or "use warnings" in you code. This might make things easier for you now, but you will suffer for it in the long term.

2/ You aren't using to parse your CGI input parameters. You'll find that much easier that your home-grown parsing routine readPostInput.

Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives