#!/usr/local/bin/perl # # Doug's WWW Mail Gateway 2.2 # 5/95 # All material here is Copyright 1995 Doug Stevenson. # # Use this script as a front end to mail in your HTML. Not every browser # supports the mailto: URLs, so this is the next best thing. If you # use this script, please leave credits to myself intact! :) You can # modify it all you want, though. # # Documentation at: # http://www-bprc.mps.ohio-state.edu/mailto/mailto_info.html # # Configurable items are just below. Also pay special attention to # GET method arguments that this script accepts to specify defaults # for some fields. # # I didn't exactly follow the RFCs on mail headers when I wrote this, # so please send all flames my way if it breaks your mail client!! # Also, you'll need cgi-lib.pl for the GET and POST parsing. I use # version 1.7. # # Requires cgi-lib.pl which can be found at # http://www.bio.cam.ac.uk/web/form.html # # PLEASE: Use this script freely, but leave credits to myself!! It's # common decency! # ######## # # Changes from 1.1 to 1.2: # # A common modification to the script for others to make was to allow # only a certain few mail addresses to be sent to. I changed the WWW # Mail Gateway to allow only those mail addresses in the list @addrs # to be mailed to - they are placed in a HTML '; # foreach (sort keys %addrs) { # if ($in{'to'} eq $addrs{$_}) { # $selections .= "