Skip to the content

The EZ Form Mailer Program**

This CGI script by 3rd Coast Technologies takes the data entered in an HTML form and sends it via e-mail to the specified location.

Before you begin configuring the form mailer, be sure that you have a form created and that all of the fields have been defined (i.e., each field has been assigned a name and attributes).

Step 1: Add the Required Fields

Make sure that your form contains the following two fields called "email" and "Name". The form is case-sensitive so make sure the spelling is identical to that specified below. You may change the size value as needed.

<input type="text" size="35" name="email">
<input type="text" size="35" name="Name">

Step 2: Define the Form Action

Make sure that the action that you define for your form is referenced to the cgi program in "/cgi-bin/ezform.cgi".

<form action="/cgi-bin/ezform.cgi" method="POST" name="EZFormMailer">

Step 3: Insert Hidden Fields

Copy and paste the following hidden fields into your form. You will learn to configure them in the next steps. Download Fields

<input type="hidden" name="to_email" value="userid@calstatela.edu">
<input type="hidden" name="subject" value="Name of the Form">
<input type="hidden" name="redirect" value="http://www.calstatela.edu/confirm.htm">
<input type="hidden" name="sort_type" value="field">
<input type="hidden" name="sort_fields" value="Field1,Field2,Field3,...">

Step 4: Read the Documentation

Make sure that you read and fully understand all of the enclosed documentation before you begin to configure the form.

Step 5: Configure the Hidden Fields

Configure the hidden fields according to the documentation. The parts of that need to be configured are highlighted in red in Step 3 above.

Step 6: Test the Form

Test the form mailer by filling out and submitting the web form to make sure that it works properly

** If you should run into any problems during or after the installation of this script, please consult the script documentation for assistance. This script is being provided to you AS IS.


5151 State University Drive . Los Angeles . CA 90032 . 323-343-3000
© 2012 Trustees of the California State University