# begin template file # Lines beginning with a # sign are considered comments. # Use the *define-variables* section to specify which variables # are required. Supply a specific error message for the [email] variable *define-variables* [req-name] [req-email] = " Please enter an email address " [req-question] # The *email-response* line below specifies that this is the email-response # section of the template file. Other sections will be described later. # The other lines are just plain text with html form variable names # enclosed in [ ] where you want the values entered by the user # printed in the email message *email-response* To:smith@indiana.edu From:[email] Subject: Question from [name] Question from [name] Supplied email address is [email] See the question below: [question] # Now begin the *success-response* section that will be displayed to # the user. Because this is being sent back to the user's browser # it must be in the form of a html document *success-response* Thank You

Thank You

Your name is: [name]
You supplied the following email address: [email]
Your question was:
[question] # Now let's add a error-response section # Again, this must be in the form of a html document because it is being # returned to the user's browser. # Remember, this section is displayed to the user when required # fields, flagged with req-, are not completed by the user. *error-response* Sorry, you made an error

Sorry, you made an error

You must complete the following fields:

Your name: [name]

Your email address: [email]

Your question:
[question]

Use the back selection on your browser to go back and complete all required fields.

# end template file