#!/usr/local/etc/httpd/querysh #?/bin/sh # mailer - process WWW feedback form, and e-mail filled-in form # - uses querysh to parse input from POST query # # (c) 1995, Gilles Detillieux, Physiology, University of Manitoba. if [ -z "$QSH_Fields" ] then # No form fields given -- send empty form cat < Our Mail Box

Our Mail Box


Send a Question, Comment or Suggestion to us

Note:
Please enter all of the information, then use the Submit button at the bottom of the page.

Type :
Comment
Suggestion
Help!

Name (optional) :

Email (should you want a reply; also optional) :

Comments :

! exit fi mydom="your.domain.edu" dest="www@${SERVER_NAME:-$mydom}" from="${QSH_emailid:-www@${SERVER_NAME:-$mydom}}" name="${QSH_username:-${SCRIPT_NAME:-mailer} script}" rcvd="Received: from ${REMOTE_HOST:-${REMOTE_ADDR:-unknownhost}} by ${SERVER_NAME:-`hostname`} with HTTP" /usr/lib/sendmail -oi -oem "$dest" < Mail Box Entry Your message has been mailed:


To: $dest
From: $from ($name)
Subject: WWW form response - $QSH_mailtype

According to $QSH_username ($QSH_emailid):
$QSH_comments

Thanks for writing. Your comments are always appreciated. !