Form Mailer Installation Guide
Create three html files and name
them ok.html and ko.html and req.html. OK.HTML will be
displayed each time the form was submitted correct, KO.HTML
will be displayed each time the server encountered and
internal server error and REQ.HTML will be displayed each time
the form was submitted without having all required fields
filled in. Here are examples of each file
ok.html - (Your thank you
message)
ko.html - (Server Error)
req.html - (This will contain message to remind user to
fill in required fields)
Create your form and
ensure that you have the following lines
<form NAME="SpaceForm"
METHOD="POST" ACTION="/cgi-mail/CGImail.exe">
<input type="hidden" name="$File$" value="i:\usr\iwi\template\example.txt">
<input type="hidden" name="$Subject$" value="Form Example">
<input type="hidden" name="$LocationOK$" value="http://www.iwi.com.sg/customercare/hosting/win2k/ok.html">
<input type="hidden" name="$LocationKO$" value="http://www.iwi.com.sg/customercare/hosting/win2k/ko.html">
<input type="hidden" name="$LocationReq$" value="http://www.iwi.com.sg/customercare/hosting/win2k/req.html">
<input type="hidden" name="$To$" value="cussvc@iwi.com.sg ">
<input type="hidden" name="$Optional$" value="No input
given.">
Line1: Calling the CGI
Line2: Path to template file (i:\usr\you_domain_here\template\whatever.txt)
Line3: The subject of your form
Line4: Location of your file called ok.htm
Line5: Location of your file called ko.htm
Line6: Location of your file called req.htm
Line7: Recipient (add another line to have multiple
recipients, "To" or "Cc")
Line8: Value used if optional fields have not been filled in
-
Note: Line1 - Line8 are
required ! You may add multiple recipients by simply adding
additional "To" or "Cc" lines.
-
Create your template
file and upload it into your template folder inside your
virtual server root (see example below). Click here to
download the
complete documentation
-
Form example and source
/ template file (working demo)
-
View the
template file
Back to
Windows Care |