Index of /website/8TB_easystore/ LCC/Left Screen Stuff/LCC peripheral stuff/SLI ITI/cool stuff/Programming CGI Stuff/MacPerl Forms Stuff/forms.acgi ƒ
Forms.acgi Information Sheet
Forms.acgi Information Sheet
Abstract:
This program was designed to solve a very simple problem: to take the
data from a form and mail it to an e-mail address (while using a Mac web
server). Until now the only way you could do this was to use MacPerl or
Applescript which works fairly well, but I wasn't pleased with how long
it took to generate a response for the end user. After discovering how
well-written John Norstad's
Mail Tools Gateway
was, I immediately started hacking at it until it would solve my
form/mail problem. I've been extremely impressed with how fast and
efficient John's code is even after I've gone in and kludged my way
around.
I hope you enjoy using this as much as I have. If you want a more detailed
description of how this cgi works, then please read John's
Mail Tools Technical
Information page. The on-line version of this ReadMe can be found
here.
- Key Features:
- Uses hidden fields in form for "To:", "From:", "Subject:", and the SMTP host
- Modifiable standard header and footer with ResEdit
- Extremely fast threaded ACGI
- Written entirely in Metrowerks Codewarrior
- Fat binary (works on both 68k and PowerMac)
- Requirements:
- A Mac with System 7.0 or higher
- Webstar,
MacHTTP,
Netpresenz,
Webserver 4D, or any other Macintosh web server
that supports CGIs.
- Thread Manager (integrated with 7.5)
- Access to an SMTP server
- Download:
- Forms.acgi
application package
- Customizing Forms.acgi:
- Open Forms.acgi with ResEdit and change the following:
- CNFG 128 = Set maximum number of threads, how long it stays open, etc.
- STR# 129 = Change e-mail addresses, alter response message
- TEXT 129 = Change standard header
- TEXT 130 = Change standard footer
- TEXT 131 = Change form that's returned when acgi is called directly
- The following field names have special meanings:
- mailto = "To:" address for e-mail message (required - must be in user@host.domain format)
- mailfrom = "From:" address for e-mail message (required - must be in user@host.domain format)
- mailsubject = "Subject:" line for e-mail message
- smtphost = SMTP host that acgi sends message through (required)
- KILL = makes Forms.acgi quit as soon as possible
- header = Allows each form to have a different response header
- You can put a '*' before any field name to keep it out of the e-mail response.
- Any of those fields can be of type "hidden" so they don't show up on the form.
- Examples:
- Call acgi directly
to get Generic mailer
- Admissions
Response Card
- Personal page
that uses a different response header (make sure you replace the default
e-mail address so that you don't accidently send him e-mail...)
- Thanks to:
- John Norstad
for writing such great code and giving it away for free.
- Dale Lee
and Dave Young for letting me create the first version of this program
while I worked at Biola.
- Brian Hall
for giving suggestions and being my
test case.
Standard Disclaimer:
This version of Forms.acgi is being distributed as freeware. It may not be sold
for profit or included with other software, products, or services which are sold
for profit without the permission of Steve Johnson, but otherwise you should feel
free to use it and redistribute it.
STEVE JOHNSON PROVIDES FORMS.ACGI AS IS, WITHOUT ANY WARRANTY OR PROMISE
OF TECHNICAL SUPPORT. STEVE JOHNSON DISCLAIMS ANY LIABILITY OF ANY KIND
FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF FORMS.ACGI,
INCLUDING, WITHOUT LIMITATION, INCIDENTAL, CONSEQUENTIAL, INDIRECT OR
SPECIAL DAMAGES OF ANY KIND, EVEN IF STEVE JOHNSON IS AWARE OF THE
POSSIBILITY OF SUCH DAMAGES. STEVE JOHNSON MAKE NO WARRANTIES, EXPRESS
OR IMPLIED, WITH RESPECT TO THE PROGRAM, INCLUDING BUT NOT LIMITED TO
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Last modified: Monday, November 25, 1996