NAME

sendform.cgi - Email web form data


SYNOPSIS

  <form method="post" action="/cgi-bin/sendform.cgi" name="my_form_name">
  <input type="hidden"
        name="mail_to" value="webmaster_at_domain.com">
  <input type="hidden"
        name="mail_from" value='hostmaster_at_domain.com'>
  <input type="hidden"
        name="mail_subject" value="domain_._com web form submission">
  <input type="hidden"
        name="success_page" value="http://www.domain.com/mailsuccess.html";>
  <input type="hidden" name="skip_fields"
        value="mail_to, mail_from, mail_subject, success_page, skip_fields, submit">
  <input type="text" name="some_field" size="17">
  ...
  </form>


DESCRIPTION

sendform.cgi mails the data submited through a web form. It uses hidden form fields for configuration.

The email addresses used in the hidden fields can be written with ``_at_'' instead of ``@'', so it is a bit more difficult for email harvesting robots to catch the addresses.

The recipient addresses must be registered with the system to avoid spammer abuse.


REQUIRED FIELDS

The following configuration fields are required:

mail_to

Address(es) to send the results to. You can have multiple addresses, and you can use real names.

By default, you can use any address in your website's domain. To use an outside address, it must first be registered in the script. This avoids the well-known mail form security problem.

mail_from

The email From: address. It can contain a real name. It must be a valid email address, preferrably different than the mail_to address, so in case of errors, someone gets them.

success_page

The web page to redirect to on success.


OPTIONAL FIELDS

The following configuration fields are optional:

mail_subject

The subject to use in the mail.

skip_fields

The form fields to skip in the sent mail. Usually just these configuration fields, and your submit button.

error_css

URL of CSS style sheet to use for error pages.

The default is 'http://--yourdomain--/styles/sendform.css'.

The generated error page uses the tags H1, P, PRE, HR and the class ``footer''.


AUTHOR and COPYRIGHT

perl -e "print qq(mi.perl\x40alma.ch\n)"


LICENSE

Same as Perl itself.