[Merula Logo]
Merula Limited
Web Server Information



Merula's web server has a number of scripts to help make your web sites more interesting. Information on the publicly available scripts is given below.
 
Formmail Script
This section describes how to create the HTML code for form-to-mail processing using the script located at http://www.merula.co.uk/cgi-bin/formmail.pl. The formmail script can be used as a universal WWW form -> Email gateway.

Sample HTML is shown below:

<html><head><title>Sample formmail page</title></head> 
<body><h1>Sample formmail page</h1>

<form action="http://www.merula.co.uk/cgi-bin/formmail.pl" method=post>

<input type=hidden name="recipient" value="support@merula.co.uk">

<strong>Subject of your email</strong><br> 
<input type=text name="subject">

<strong>Your email address</strong><br> 
<input type=text name="email">

<strong>Your real name</strong><br> 
<input type=text name="realname">

<input type=hidden name="redirect" value="http://go.here.when.done/file.html">

<input type=hidden name="required" value="email,subject,realname">

<input type=hidden name="missing_fields_redirect" value="http://go.here.if.some.fields.are.blank/file.html">

<input type=hidden name="env_report" value="REMOTE_HOST, REMOTE_ADDR, HTTP_USER_AGENT">

<input type=hidden name="print_blank_fields" value="1">

<H2>Feedback data</H2>

Please enter any comments here.<br>
<TEXTAREA NAME="Comments" ROWS=10 COLS=50></TEXTAREA><P> 

<INPUT TYPE="submit" VALUE="Submit details for processing"><P>

</body></html>

The resulting form would look like.

Sample formmail page

Subject of your email

Your email address

Your real name

Feedback data

Please enter any comments here.



Field Definitions

Required Fields

recipient email address
<input type=hidden name="recipient" value="your@email.address">

Optional Fields

subject line of the message
<input type=text name="subject">

email address of the sender

<input type=text name="email">

realname of the sender

<input type=text name="realname">

redirect address for successfully submitted forms

<input type=hidden name="redirect" value="http://www.merula.co.uk/formmail.done.html">

required to be filled fields go in here

<input type=hidden name="required" value="email,subject">

missing_fields_redirect address for submitted forms with missing data

<input type=hidden name="missing_fields_redirect" value="http://go.here.if.some.fields.are.blank/file.html">

env_report specifies any of these three environment variables to include in the email

<input type=hidden name="env_report" value="REMOTE_HOST, REMOTE_ADDR, HTTP_USER_AGENT">

print_blank_fields in the email message  

<input type=hidden name="print_blank_fields" value="1">


Formail version 1.6 is Copyright © 1996-1997 Matt Wright mattw@worldwidemart.com Created 06/09/95 (Last Modified 05/02/97)
Matt's Script Archive, Inc.: http://www.worldwidemart.com/scripts/

 
Web Counter
Details to follow shortly.

 
Guest Book
Details to follow shortly.

 

 
If you have any support queries, please email our support staff.
 

Merula Limited
14 Codrington Court, Eaton Socon, St Neots, Cambridgeshire, PE19 3TE, United Kingdom
Telephone +44 1480 222940   Fax +44 1480 222941
email info@merula.net   web http://www.merula.net