in reply to consistent form mail error: premature end of script headers

Would you be willing to use a different mailer? The nms projects has a well-written and secure form mail program with documentation and user support. Looking at Mr. Marshall's program, it's not the sort of thing I'd want on my server. (It's written in Perl 4, which has been obsolete for nearly a decade.)

The error message you received indicates that the program died (or gave an error message) before it could send anything back to the web browser. It's not immediately obvious why this is, but fixing the issues with the code would take longer than recommending a better starting point.

  • Comment on Re: consistent form mail error: premature end of script headers

Replies are listed 'Best First'.
Re: Re: consistent form mail error: premature end of script headers
by edahm (Initiate) on Jan 17, 2003 at 21:42 UTC
    Thank you for replying. I am certainly open to any mail script, and I tried the one you suggested. Though I have not worked through it intensively, my intial test (http://thrall.library.hope.edu/~dahm/sample_form.html) provided the same script header error.

    I also attempted a simple form that would only post the data to another website, and that failed as well. Strangely, my "hello, world" program works find.

    Does the fault lie with the server? We're running a recent version of RedHat Linux with an Apache webserver. Is there any kind of settings that I should make sure are correct?

Re: Re: consistent form mail error: premature end of script headers
by Wysardry (Pilgrim) on Jan 18, 2003 at 01:59 UTC

    Just a quick question, which is kind of related:-

    Are there any other script providers of a similar quality to those of the nms project? I find it very difficult to find decent scripts to use as learning aids, or that I can recommend to others.

    (I'm hoping this isn't too off-topic as the original poster would probably also appreciate knowing about similar sites.)