University of Maryland College of Arts and Humanities University of Maryland
About the College
Admissions
Academics
Outreach Programs
Student Resources
Technology


 

Configuring a Form to Send Email


Step One:

You must request that your email address or the address of a mail list you maintain be added to the FormMail list. You may submit the request using the form at www.arhu.umd.edu/technology/acs/documentation/formmailrequest.html.

Step Two:

Once your address has been added to the FormMail list, you must configure your form to allow submissions to be processed by the FormMail script.

1. The form method setting should be configured as follows:
<form method="post" action="http://www.arhu.umd.edu/cgi-bin/FormMail.pl" name="">

These following tags must be placed in the body of the html after the <form> tag.

2. To determine the order of the information in the fields of the form will display in the email you receive:
<input type="hidden" name="sort" value="order:fieldname1,fieldname2,fieldname3">
where the variables fieldname1,fieldname2,fieldname3, etc. are replaced with the names of the fields in your form.

3. [Optional] To identify fields that must be filled out before the form can be submitted:
<input type="hidden" name="required" value="fieldname1,fieldname2,fieldname3">
where the variables fieldname1,fieldname2,fieldname3, etc. are replaced with the names of the fields in your form that you want to be required fields.

4. To instruct the form to send the results to the person or people you specify:
<input type="hidden" name="recipient" value="YourMailVariable">
where YourMailVariable is replaced with the mail variable that was provided to you in response to your request to be added to the FormMail list.

5. To specify the subject line that will be used for the mail you receive when forms are submitted:
<input type="hidden" name="subject" value="The Subject Line for the Message">

6. To specify what web page to display after a form has successfully been submitted:
<input type="hidden" name="redirect" value="http://www.yourpage.umd.edu">
where www.yourpage.umd.edu is replaced by the URL of the page you want displayed.

The following example, taken from the form section of the page at www.arhu.umd.edu/technology/acs/documentation/formmailrequest.html, shows the use of the tags described above.

 

Back to Top

Admissions Technology Student Resources Outreach Programs Academics About the College home

College of Arts and Humanities
1102 Francis Scott Key Hall
University of Maryland
College Park, MD 20742-7311
301-405-2088 Phone
301-314-9148 Fax
Contact us with questions, comments and feedback
Search the Arts and Humanities web site