Mail Form Handler
The Mail Form Handler is a a customizable CGI script designed to email information entered via Web-based forms, hosted inside the sjsu.edu domain. This script was initially released in August 2003 and has gone through a few iteration since then. The current version of the script is 6.1. This script has roots from version 3.2 of the script written by Tim Stevenson.
Related Links
Using the Form Handler
Basic
- Add the following line inside your Web page
<form method="post" action="http://www.sjsu.edu/cgi-bin/mail_form.pl">
- Following fields are required and should be used inside your form
- TO contains destination email address
- SUBJECT contains subject of the email
- FROM contains sender email address
- COMMENTS contains sender comments
- LNAME contains sender last name
- FNAME contains sender first name
Steps 1 and 2 provide basic information for using the script.
Advanced
A. Customization using HTML form fields
- Table Border: Default is YES. This can be changed as follows
<input type="hidden" name="TBORDER" value="NO"> - Response Page Title: Default is "Mail Form Handler Response:". This can be changed to any meaningful title
<input type="hidden" name="Response Page Title" value="Vistor Response Confirmation"> - Greeting: Default is "Thank You". This can be changes to any meaningful greeting
<input type="hidden" name="Greeting" value="Appreciate your feedback.">
B. Customization using HTML pages
- CSTART: Display additional information before the message sent
<input type="hidden" name="CSTART" value="greeting.htm"> - CEND: Display additional information at the end of the message sent
<input type="hidden" name="CEND" value="thanks.htm"> - CCONFIRM: Override current confirmation screen
<input type="hidden" name="CCONFIRM" value="myconformation.htm">
C. Specify a required field
D. Securing destination email address
- STO: A secure way to hide the destination email address. Contact the Web Services Unit to request a secure hash for your email address.
<input type="hidden" name="STO" value="WSUM">
E. Using HTML Mime type in email
- You can specify the email to use HTML MIME type using EMAIL_TYPE. Here custom HTML pages CSTART and CEND are emailed in HTML format.
<input type="hidden" name="EMAIL_TYPE" value="html">
Note: Some browsers may not handle MIME type HTML.