|
CGI Mail
Important Notice:
The cgi script "VNFORM.CGI" will be pre-installed for all new
accounts. You will be able to find this file inside your /bin/cgimail
folder. Please read this page carefully and edit the
configuration for your Email alias in your script file. You
will not need to edit any other part of the script.
Form setup:
Required fields:
<FORM METHOD="POST" ACTION="/cgi-mail/vnform.cgi">
<INPUT TYPE="hidden" NAME="to" VALUE="alias">
The first line is the location of the mail script. The second
line is the alias of the recipient as specified in %alias (see
cofiguration below).
All other fields are optional, but i guess it would be a good
idea to include some.
Configuration fields:
- linkURL
This will be used for a link on the confirmation page. Default
is your base directory /. Example: <INPUT TYPE="hidden" NAME="linkURL"
VALUE="http://www.server.com/thanks.html">
- linkName
This will be used as name for the link specified above.
Default is 'home'.
Example: <INPUT TYPE="hidden" NAME="linkName" VALUE="home">
- e-mail:
The email address of your visitor. This will appear in the
'From' field of the messages header. Example: <INPUT
TYPE="text" NAME="e-mail">
- name
The realname of your visitor. This will appear in the 'From'
field of the messages header. Example: <INPUT TYPE="text"
NAME="name">
- subject
The subject of the message. This will appear in the 'Subject'
field of the messages header. Example: <INPUT TYPE="text"
NAME="subject">
- required
Specifies required fields. The script will only send mail, if
all required fields are filled out. Example: <INPUT
TYPE="hidden" NAME="required" VALUE="e-mail,subject">
- bgcolor
Specifies the background color of the confirmation and error
pages. Default value is white. Example: <INPUT TYPE="hidden"
NAME="bgcolor" VALUE="black">
- color
Specifies the font color of the confirmation and error pages.
Default value is black. Example:
<INPUT TYPE="hidden" NAME="color" VALUE="white">
- face
Specifies the font face used for the confirmation and error
pages.
Default value is Arial. Example:
<INPUT TYPE="hidden" NAME="face" VALUE="Comic Sans MS">
- title
Specifies the title of the confirmation page. Default value is
'message sent'. Example:
<INPUT TYPE="hidden" NAME="title" VALUE="Thanks for your
feedback">
- redirect
Use it, if you want to use your own confirmation page.
Example:
<INPUT TYPE="hidden" NAME="redirect"
VALUE="http://www.server.com/you/thank_you.html">
All other form fields will get mailed to you. You can include
as many as you like. Example: your homepage: <INPUT
TYPE="text" NAME="hp" SIZE="40">
will get mailed as
[ hp: ]
.... <--- here comes the users input
Don't forget to close the form tag with </FORM>.
Script Configuration (Email alias):
#######################
# Configuration # ############
###########
# Choose an alias for every recipient and enter it as shown
# (Format: 'alias" => 'name@server.com').
# The alias has to be in the form field
# <INPUT TYPE="hidden" NAME="to" VALUE="alias">.
%alias = ( 'sales' => 'sales@yourname.com',
'care' => 'care@yourname.com',
'admin' => 'admin@yourname.com',
'support' => 'support@yourname.com',
'general' => 'general@yourname.com'
);
Back to
Windows Care |