Technical Support
Orders & Payments
Mail Forms

Using WebMailer Lite

An Overview of Forms

Using WebMailer Lite with HTML forms is very easy.  Using your favorite HTML editor, create a form as you normally would.  The form's action value will need to be set to reflect the directory where the program was installed. 

For example, the form header might be: 

<FORM METHOD="POST" ACTION="http://cgi.hostingkey.com/cgi-sys/WMLite.exe">

<input name="ID" type="hidden" value="www.domain.com">
<input name="recipient" type="hidden" value="recipient@domain.com">
<input name="subject" type="hidden" value="Subject">
<input name="title" type="hidden" value="Form Title">
<input type="hidden" name="redirect" value="http://www.domain.com/successpage.html">
<input name="required" type="hidden" value="email,field1,field2,field3">
<input name="sortorder" type="hidden" value="email,field1,field2,field3">

-------------

</FORM>

Each of the settings in the previous section can then be included in most cases using the "HIDDEN" HTML input type.  The obvious exceptions would be the fields for the visitor's email address as well as the credit card fields which would be specified as the "TEXT" input type in this case.  

Please refer to an HTML reference guide for more information about creating forms.  

WebMailer Lite Form Variables

WebMailer Lite uses the contents of the actual form along with default settings from the WEBMLR.INI initialization file to determine which actions to perform once the user has submitted the form. To pass parameters to the program through a form, you will need to specify a 'NAME' and 'VALUE' for each form object.

For example, to save a person's name you would use the following tag inside the '<FORM>' tags of your form.

<INPUT TYPE="TEXT" NAME="Last_Name" VALUE="">  

<INPUT TYPE="HIDDEN" NAME="RECIPIENT" VALUE= "admin@aegeas.net">  

Once the user submits the form, WebMailer Lite will return the value of the 'Last_Name' variable in an e-mail message to admin@aegeas.net  

WebMailer Lite reserves certain values to control form processing.  By specifying the value of these variables, you can customize the behavior and output of the program. Most of these variables may be specified as the 'HIDDEN' input type . Many of the variables can also be used to retrieve information from the user within the form. In this case, the input type should be specified as "TEXT"

For example:  

To set the receipt's subject field yourself so that it is always the same, you could use the following tag within the form:  

<INPUT TYPE="HIDDEN" NAME="RECEIPT_SUBJECT" VALUE="Your receipt">   

To allow the user to enter this information, so that they can set the subject of the message which they will receive, the following tag should be used within the form:  

<INPUT TYPE="TEXT" NAME="SUBJECT" VALUE="">  

Notice the difference in the input type.

The following is a list of keywords that the program will recognize:
Variable  Description
Basic Keywords
DISABLE_EMAIL

Informs the program that no e-mail messages should be generated for this form.

EMAIL

Sets the e-mail address which will appear in the "From:" field of the notification message which is sent to the user specified in 'RECIPIENT' (See below).  

RECIPIENT (required)

Sets the e-mail address to which the notification message is to be delivered.  

REQUIRED

A list of the required fields to be filled out   in the form. The names in the list must match the 'NAME' values in the form. If the user submits the form without the required fields, then he/she is informed that the entry is incomplete and the fields are missing.  A list of unfilled required fields can be generated and presented to the user.

SUBJECT

Sets the text which will appear in the "Subject:" field of the notification message  

Output Page Keywords  
BGIMAGE  

Sets the background image of the output page created on the fly by the program (if 'REDIRECT' is not specified) or of any error pages sent to the user's browser.  

BGCOLOR

Sets the background color of the output page created on the fly by the program (if 'REDIRECT' is not specified) or of any error pages sent to the user's browser.  

LINKBACK

Creates a link at the bottom of the output page created on the fly by the program (if 'REDIRECT' is not specified) or of any error pages.  This is the URL of the page that is linked back to.  

LINKBACKTEXT 

If 'LINKBACK' is specified, this text is displayed with the link. If 'LINKBACKTEXT' is NOT specified, the default text "Back to site" will be used.  

REDIRECT 

Sets the absolute URL to which to redirect the user's browser after the program has finished processing the form.  

REDIR_MISSING

Sets the absolute URL to which to redirect the user's browser after the program has determined the user has not filled in all of the fields set in the 'REQUIRED' field.  

SORTORDER 

Specifies which values from the form that you want to appear in the notification message sent to the user specified in 'RECIPIENT' as well as the order of those values. If the sort order is not specified, then the form values are returned in random order.

TEXTCOLOR

Sets the text color of the output page created on the fly by the program (if  'REDIRECT' is not specified) or of any error pages.