sendform.cgi - Email web form data
<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>
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.
The following configuration fields are required:
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.
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.
The web page to redirect to on success.
The following configuration fields are optional:
The subject to use in the mail.
The form fields to skip in the sent mail. Usually just these configuration fields, and your submit button.
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''.
perl -e "print qq(mi.perl\x40alma.ch\n)"
Same as Perl itself.