[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Newbie Question- New Server -Form to Email Problem



||>Why don't my forms process?  Isn't sendmail "server-wide".

First, no request is stupid. The only stupid question is the one that isn't
asked!
Second, yes, sendmail is server-wide. However, its only purpose is to send
out mail.
The form that you are using needs to interact with a CGI script so that the
name=value pairs can be parsed and formatted into something that you can
read without turning your head sideways and beating it on your desk
repeatedly.

Specifically:
FORM ACTION="/usr/sbin/sendmail" METHOD="POST"

This form action needs to go to a form processing script somewhere on the
server, not sendmail itself. That form will then sort everything out, and
hand over a legible letter to sendmail.

Try putting formmail.pl (or cgi) in /home/sites/home/web/forms  (you'll have
to make the directory 'forms') and tell your users to post their forms to
the script there. You'll have to add in all of the domains that are allowed
to use it, or just comment out the referrer lines (using #pound signs).

But basically it's not working because you're asking sendmail to do
something it can't do. It just sends out mail.

HTH!

Carrie Bartkowiak