PDA

View Full Version : formmail works on one site and not another


kypsul
11-27-2005, 04:44 AM
I am trying to work with the formmail from nms. I've gotten it to work wonderful on my testing server. Of course once I go live with the site and place everything on the live server the formmail fails.

I have of course made all of the corrections in relation to the ip addresses and the recipients emails and so on. In fact I have gone through line by line to see if I have made any mistakes comparing it to the one that works. I've had no luck.

The error that is always returned in the error logs is:

Premature end of script headers: formmail.pl

This is kind of helpful but its not telling me anything that I can debug. Does anyone have any suggetions.

Thanks,

Kyle

FishMonger
11-27-2005, 08:10 AM
It's hard to say for sure without seeing the code (including your "corrections"), but it sounds like the script is producing or trying to produce an error message before it prints the html headers.

Do you have warnings enabled? Is the script setup to send both the fatal errors and the warning messages to the browser?

I normally don't make this suggestion, beacuse it's not good forum educate, but you could also post a question in the Perl topic area of experts-exchange.com and in the subject line request help from "davorg". He wrote the first version of the mns formmail script and I believe still works on its updates.
http://www.experts-exchange.com/Programming/Programming_Languages/Perl/

FishMonger
11-27-2005, 08:20 AM
Well, after a quick check, it looks like Dave is no longer providing direct support for the script. Here's what he had to say in a recient EE thread.

The best place to ask questions on about the nms programs is probably on the nms support mailing list. Try sending an email to nms-cgi-support@lists.sourceforge.net.

You'll need to explain exactly what the problem is and tell them what error messages you're seeing (including what is in the web server error log). See http://nms-cgi.sourceforge.net/support1.html for more hints on how to debug nms problems and how to report them to the developers.

Dave...

kypsul
11-27-2005, 07:08 PM
Thanks for the updates I will check them out.

Kyle