home *** CD-ROM | disk | FTP | other *** search
/ How to Get Online 1996 Spring / HOW2GON.ISO / mac / E-Mail / Flexmail / details.txt next >
Encoding:
Text File  |  1995-10-24  |  4.2 KB  |  110 lines  |  [TEXT/ttxt]

  1. flexmail.acgi works with MacHTTP.  It handles form responses sent from a 
  2. browser, returning a thank-you to the sender and mailing the formatted 
  3. information.  Who receives the info is easily set by editing some text .
  4.  
  5. The form is an html file. For example:
  6. ---------------------------------------------------------------
  7. <title>Fun Form</title>
  8. <h1>Have fun filling out the form:</h1>
  9.  
  10. <form action=flexM.68k.acgi method=post> 
  11. Your name:
  12. <input type=text name="name" value=" Enter your name here " size=50><P> 
  13.  
  14. Your favorite city:
  15. <input type=text name="city" value=" Your favorite city " size=50><P> 
  16.  
  17. A color:
  18. <input type=text name="color" value=" crimson " size=50><P> 
  19.  
  20. A different color:
  21. <input type=text name="difcolor" value=" auburn " size=50><P> 
  22.  
  23. <input type=reset value="Start Over"><input type=submit value="All Done!"> 
  24. </form>
  25. </html>
  26. ------------------------------------------------------------------
  27. The responses are sorted by name.  The name is a key to picking out the 
  28. information you want. A template can be composed so that responses can in 
  29. inserted as desired.
  30.  
  31. The second file needed is a .flx file. An optional <input type="hidden" 
  32. name="flexConfig" value="myConfig.flx"> allows you to choose among 
  33. multiple files. The default name of the file, if one does not use the 
  34. "flexConfig" key, must be: flexform.flx. (Otherwise, the program won't find 
  35. it.)  The reserved use of "flexConfig" is to tell the program which .flx file 
  36. to read.
  37.  
  38. Continuing with this example:
  39. ------------------------------------------------------------------
  40. *Mail you@some.dom   
  41. To: you@some.dom  
  42. From: Gandalf <you@some.dom> 
  43. Subject: The next step? ....
  44.  
  45. From %city%, MacroSlush plan to inject their Ebola Operating System into 
  46. poor %name%'s pathetic computer.  Soon afterwards the  %color% and 
  47. %difcolor% logo of MacroSlush will desecrate terminals throughout the 
  48. World Wide Web!
  49.  
  50. *Response 
  51. Content-type: text/html
  52.  
  53. <title>HA-HA-HA!!!</title>
  54.  
  55. A natural surrealist has taken your innocent remarks and used them to 
  56. <strong>Change Life!</strong><hr>
  57. ----------------------------------------------------------------
  58. OK, end of example, this is me again.  A .flx file is two files in one.  The 
  59. part that comes after:
  60.  
  61. *Response 
  62. Content-type: text/html
  63.  
  64. is your composed thank-you to the person who submitted form data.  Please 
  65. copy the "*Response..../html" EXACTLY as shown above.  (Computers give no 
  66. slack.) 
  67.  
  68. The leading part of the file, "*Mail you@sonic.net" is the address where the 
  69. formatted responses will go.  Take out that address and put in yours.  
  70. Simple!  The same with the next three lines, "To:, From:, Subject: ".  
  71.  
  72. Most people format thusly:
  73.  
  74. Name: %name%
  75. City : %city%
  76. Color: %color%
  77. Diferent color: %difcolor%
  78.  
  79. I was a little playful.  Anyway, flexM will substitute those %key% patterns 
  80. with the value associated with the key.  Pretty slick. AND then mail it!
  81.  
  82. flexmail.acgi is an easy, flexible, efficient way of gathering information 
  83. from Web browsers.  
  84.  
  85. The default configuration for flexmail.acgi (and Mail Tools Gateway) is in 
  86. the 'CNFG' id=128 resource and can be changed using ResEdit:
  87. Max # concurrent requests (threads): 10.
  88. Thread timeout: 1 minute.
  89. Idle time before auto quit: 0 (the gateway never quits).
  90. Logging level: 1 (stats logging).
  91. Memory partition: 1.2 megabytes.
  92.  
  93. flexM.68k.acgi was created using John Norstad's Mail Tools Gateway on a 
  94. Quadra 610 running System 7.1.  C. Joe Holmes instigated this project.  His  
  95. PERL script, flexMail, is the elder brother of flexM.68k.acgi.
  96.  
  97. Fine Print
  98.  
  99.    Robert Flannery and C. Joe Holmeshereby disclaim all warranties relating 
  100. to this software, whether express or implied, including without limitation 
  101. any implied warranties of merchantability or fitness for a particular 
  102. purpose.  Neither Robert Flannery nor C. Joe Holmes will not be liable for 
  103. any special, incidental, consequential, indirect or similar damages due to 
  104. loss of data or any other reason, even if Robert Flannery, C. Joe Holmes or 
  105. an agent of theirs has been advised of the possibility of such damages.  In 
  106. no event shall Robert Flannery nor C. Joe Holmes be liable for any damages, 
  107. regardless of the form of the claim.  The person using the software bears 
  108. all risk as to the quality and performance of the software.
  109.  
  110.