Forms and cgi e-mail
The purpose of cgiemail, a cgi program written in C for UNIX, is to take the input from a www form and convert it to an e-mail format defined by the form's author.
1. Create an e-mail template.
Before you start receiving e-mail messages through the web, you should decide what these messages should look like. Create an ASCII file, called an e-mail template, that looks something like thisTo: norm.herr@csun.eduSave this as a text file in the directory from which you will include your form and questions.
Subject: STUDENT TEACHER: intern (plans)
NAME: [name1]
CREDENTIAL1 [first_cred1]
CREDENTIAL2 [second_cred1]
EMAIL: [email1]
HOME PHONE: [home_phone1]
STREET: [street1]
CITY: [city1]
ZIP: [zip1]
CLEARED: [cleared1]
NEEDS: [clearance1]
PROGRAM: [program1]
NEXT CLASS: [class1]
SEMESTER [semester1]
SCHOOL: [school1]
MASTER_TEACHER [master1]
MT EMAIL [mt_email1]
2. Create the HTML form.
So, you've decided to create an HTML form. Here is an example (this is not an active form)
Name: Which credentials are you working toward?
Student Teaching
Are you cleared for student teaching? If not, what do you need to complete to be cleared?
Which internship program are you in?:
What is the next student teaching class you plan to take in
What school will you be teaching at?
Who will serve as your master teacher? What is your master teacher's email address?
Personal information
email address
home phone
home street address home city home zip
3. Include the following html tags
Include this html code:
<form action="http://www.csun.edu/cgi-bin/cgiemail/~vceed002/courses/555/forms/intern.txt"
method="POST"> The portion in red should be substituted with the path to your text file.