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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Debugging CGI script

 



zakasa
New User

Nov 12, 2003, 1:46 AM

Post #1 of 2 (478 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/main.cf: 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)


davorg
Thaumaturge / Moderator

Nov 12, 2003, 2:12 AM

Post #2 of 2 (477 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:

Code
To: sam\ @pterosaurtechnology.co.uk

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 CGI.pm 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
http://www.dave.org.uk/
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