You may incorporate a simple form such as this on your web page that will send email to you with the information submitted. In order to produce this form mailer on your web page, you may duplicate the form mailer code below. Be sure to review the name/value pairs. If your web page is not on RA with an address like http://www.wwu.edu/depts/xxxx or http://www.wwu.edu/xxxx then contact webhelp for more information.
To prevent misuse of the form, the recipient address for the form is cannot be contained in the form or on the page on which the form exists. Rather than supplying the email address directly, the 'recipient' field should specify a site-relative path to a file that contains nothing but a single line: the recipient's email address. See the example in the form below.
This is an example of the code required to use the options of this script.
<INPUT TYPE="hidden" NAME="recipient" VALUE="site relative path to file containing recipient address, e.g. /depts/provost/recipient.txt">
<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback form!">
<INPUT TYPE="hidden" NAME="required" VALUE="email,name,comments">
<INPUT TYPE="hidden" NAME="bgcolor" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="text_color" VALUE="#000000">
<INPUT TYPE="hidden" NAME="background" VALUE="http://www.wwu.edu/depts/atus/helpdesk/graphics/atustan.jpg">
<INPUT TYPE="hidden" NAME="title" VALUE="Thank you for your feedback!">
<INPUT TYPE="hidden" NAME="return_link_url" VALUE="http://www.wwu.edu/depts/atus/howto/generic_mailer_example.html">
<INPUT TYPE="hidden" NAME="return_link_title" VALUE="Back to feedback form!">
<INPUT TYPE="text" NAME="name"><BR>
<INPUT TYPE="text" NAME="email"><BR> <BR>
<BR> <TEXTAREA NAME="comments" ROWS="5" COLS="30" WRAP="virtual"> </TEXTAREA> <BR>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset"> </FORM>
The Following NAME / VALUE pairs are for configuration use only (used in hidden form input fields):
|recipient||path||Site-relative path to a file that contains nothing but a single line: the recipient's email address. "/depts/provost/recipient.txt"|
|email address||This can be a textbox or hidden input
that specifies the email address where
the form data is sent from.
|subject||text||This is the subject of the email.
(i.e., form submission)
|This is a comma seperated list of required
fields. (i.e., name,email,comments) Note
no spaces between the names.
|redirect||URL||This is the URL to a user specified response generated on
successful form submission.
|bgcolor||color name/code||Background color of the response pages|
|background||URL||URL to backround image|
|text_color||color name/code||Text color of the response pages|
|link_color||color name/code||Link color of the response pages|
|alink_color||color name/code||Active link color of the response pages|
|vlink_color||color name/code||Visited link color of the respnse pages|
|Title of the successful submission response page|
|return_link_url||URL||The URL to page where the successful response page links|
|return_link_title||link text||Text to above link|
|missing_fields_redirect||URL||This is a URL to a user specified response to missing fields.|
For an improvement to the form to prevent automated (spam) responses to this form, please see our how-to on adding an Anti-Spam Check for your web page.