FormMail.

TV Science Hosting provide Matt Wright's FormMail program for sending HTML form data via e-mail. Typical applications include: Feedback Forms, entering registration details etc.

Two versions are available: /cgi-bin/formmail.pl and /cgi-bin/FormMailCSV.pl. FormMailCSV.pl is a enhancement developed by ourselves which presents the given data in CSV format ready for importation into a spreadsheet or database.

Full documentation can be found at http://www.scriptarchive.com/. Our version differs slightly in that only a destination address of cgi-forms@yourdomain.co.uk is permitted (an anti-spam measure). If you wish to use FormMail, tell us the destination(s) for cgi-forms@yourdomain.co.uk.

One very important point to note is that the field called "email" is now a required element. Although not needed by FormMail itself, e-mail relays may require a valid return e-mail address before agreeing to forward the mail message (another anti-spam measure). You should thus include this code in your form:

<form method="POST" action="/cgi-bin/FormMailCSV.pl">
<input type="hidden" name="required" value="email">
<input type="hidden" name="recipient" value="cgi-forms@yourdomain.co.uk">
<p>Enter your (valid) return e-mail address, this information is compulsory:<br>
<input type="text" name="email"></p>
</form>

A problem with this method is that if the form filler makes an typographical or spelling error with the e-mail address, then the form data may still not be delivered.
Here is an alternative solution:

If your form filler does not have an e-mail address to provide, a suitable default address must still be submitted with the form. This can be done by adding the following snippet to your HTML form:

<input type="hidden" name="email" value="blackhole@tv-science.co.uk">
<p>If you wish, enter your return e-mail address:<br>
<input type="text" name="optional_email"></p>

This will allow your form filler to supply an e-mail address which need not be correct as it won't be checked for validity.

Here is a simple example form with e-mail address. Here is another without an e-mail address. Download either and customize to your requirements.

Make sure any spam filtering software in the delivery path allows e-mails generated by FormMail to pass!

IMPORTANT: E-mail is an insecure protocol, you should never send confidential information in this way. Additionally e-mails occasionally go astray or may even fail to be delivered at all.
 

 Go to the TV Science Ltd. Homepage.


Legal Information. Last update of this page: . E-Mail: webmaster@tv–science.co.uk