Uniform Mail : Examples

  • You must enter the path to the uniformmail.pl script.
    If this html page is not on your server, you must include http://www.yourdomain.com.
  • You must enter your email username (on yourdomain.com) followed by @
    This is used in the examples below, to construct the To: address.
    If you enter "you@" example emails will be sent to you@yourdomain.com.
  • Before attempting to test these examples on your server, you must install uniformmail.pl
  • When these examples are tested on the cathonian.com server, referrer-checking is enabled.
    This is achieved by specifying the url parameter params=demo.params.
    If your browser does not send referrer data, the examples will fail.
    For a detailed explanation of param files, click here.
  • YOU MUST ENTER YOUR EMAIL ADDRESS.
    This is used in the examples below as the To: address.
  • Javascript must be enabled to test these examples.
  • The target of each form is _blank - this causes the result page to open in a new window.
  • You may need to view the source code of this page to fully understand how it all works.
  • The action of each form is set using javascript. Normally, the action of a form is fixed by the HTML code. This requires that & characters are encoded as & e.g.
    <form name="test"
    action="/cgi-bin/formmail/uniformmail.pl?priority="1"&amp;subject="registration">

 

Example 1 : A little simple text

Form Action   


Note: When mail is sent from one server to another, delays of several minutes are possible.

 

Example 2 : A slightly more complex form

your email address   
address 1   
address 2   

Comments

Form Action   


Note: When mail is sent from one server to another, delays of several minutes are possible.

 

Example 3 : Verify fields before submission

Often, you need to ensure that fields are filled in.

  • You may use the script file uniformmail.js to validate most field types.
  • In this example form, the text above each field reflects the name of the field.
    You may use any labels - this text is unimportant.
  • Also see validation.

Form Action   


Note: When mail is sent from one server to another, delays of several minutes are possible.
 

  • The <FORM> declaration includes the following : -
    onsubmit="return ufm_validate(this,'!','@email_primary','@?email_secondary');"
  • The file uniformmail.js must be installed in the same directory as this page.

 

Finally