Enchanted WebsitesEnchanted Websites
HomeWhy UsHot InfoPortfolioServicesHostingSpecialtiesAbout UsContact Us
  Technical Support
Marketizing Your Site IMarketizing Your Site II
Why Have a Site?
Useful Stats


Technical Support

Use of the Form Email Script

Use of Fmail

Enchanted Websites' customer accounts are pre-configured with a 'fmail.pl' (form mail) script. This script is designed to process any forms that you write for your site. No knowledge of CGI is necessary to implement a working form on your website.

Add the following 4 lines to your form document and your form will send the information to the specified e-mail address. You will need to change all the information in Red.

<form action="/cgi-bin/fmail.pl" method="POST">
<input type="hidden" name="recipient" value="email address to receive form info">
<input type="hidden" name="subject" value="Name of form-Order Form">
<input type="hidden" name="thankurl" value="http://yourdomain.com/thankyou.htm">

The above 4 lines need to be placed at the beginning of your HTML coding that starts the forms. This is what those 4 lines do:

  • Line 1 declares to use fmail.pl on your server. Note the "/" before "cgi-bin". This script is not located on your local cgi-bin directory, but rather the server cgi-bin directory.
  • The 2nd line tell the form script to send the completed forms to the specified recipient (your e-mail address of whomever's you set it for).
  • The 3rd line tells the form script to place the declared subject line into the form sent to the recipient via e-mail.
  • The 4th line tells the form script to send the visitor filling out the form to a page thanking them for filling out the form. These are the only codes you need to interface with to get the forms working.

Don't forget to create a 'thankyou' page for your form.
Please note that if you DO NOT want to use the "thankyou.htm" you can specify:

<input type="hidden" name="thankurl" value="no">

(This will display a default thank you page for you, saves some HTML coding, but it's not very pretty.)

Also, the place in your HTML code where you ask the visitor for their e-mail address change the coding to reflect something like this:

Email Address: <input type=text name="username">

The key parameter is the name="username". This will take the e-mail address from the form and place it into the e-mail form that is sent to the recipient (declared in Line 2 of the form coding). Otherwise, the recipient will receive mail from "No-Email-Given@whatever.com" (a null used in the form script if no e-mail address is found via the username parameter).

Use of FormMail

Fmail is a simple script. FormMail (by Matt Wright) is a more sophisticated script that is also provided by Enchanted Websites, and invoked in much the same way as the fmail script.

Documentation on FormMail is located at http://www.worldwidemart.com/scripts/formmail.shtml



Enchanted Websites

9734 State Hwy 281 PMB 5034
Kelseyville, CA 95451-9636
phone: (707) 277-0173
fax: (707) 277-0179
Copyright ©1997- Enchanted Websites
All Rights Reserved

Why Us