Formail - How it works, How-to use it
The formail script is in place already on the server. Just call it with a
form from a HTML page. That's it. You do not modify the script itself. You Build a form on a page somewhere. The action of the form you create is this line:
<FORM ACTION = "/cgi-sys/formmail.pl" METHOD = "POST">
The tags in the Control Panel under 'formail' tell you How-To make a html
form. The form you create will use the features of the Formail script to send the message using the server and not
an email client.
You may want to call a different Formail script than the one avialable on the
server already. One such great script is called MasterForm and is called with
cgi-bin/MasterForm.cgi in the action tag. It has many easily set variables.
Same with formail, use the tags in the CP if you want that type of action to occur when the form button is
submitted from your web page. The formail script will process the results and
mail them to the email address you in the 'recipient' tag.
You MUST gather name and email for the script to work, the rest is up to you.
Don't put another thing on your form and you'll get only their name and email sent to your email box
Example Formail box you can use. Copy code underneath and modify
tags appropriately.
|