Home | Support



Domail

IMPORTANT: Before setting up this script please email us providing your domain name as well as the email address the form results are to be emailed to. We will then enable this script for your website.

The info on this page will let you put a form on your website to get comments from your visitors.

The email form script is called domail.pl. Here is a non-functional sample of one way the form can appear. You can customize it in many ways, as shown further down this page.

To put the form on your webpage, copy the text below into your HTML document by highlighting the text with your mouse, pressing CTRL-C to copy, then opening your HTML document with a text editor such as Notepad, and pressing CTRL-V to paste it in.

<FORM METHOD="post" ACTION="http://cgi.nac.net/cgi-bin/domail.pl">
<INPUT TYPE="hidden" NAME="recipient" VALUE="username@yourdomain.com">
<INPUT TYPE="hidden" NAME="redirect" VALUE="http://go.here.after.the.form.com/">
<INPUT TYPE="hidden" NAME="required" VALUE="email,Field_A,Field_B">
<INPUT TYPE="hidden" NAME="sort" VALUE="order:email,Field_A,Field_B">
<INPUT TYPE="hidden" NAME="env_report" VALUE="REMOTE_HOST, REMOTE_ADDR, HTTP_USER_AGENT">
<INPUT TYPE="text" SIZE="50" MAXLENGTH="50" NAME="Field_A">
<textarea cols="25" rows="2" NAME="Field_B">Text can appear already written in this box.</textarea>
<INPUT TYPE="text" SIZE="50" MAXLENGTH="50" NAME="email">
<INPUT TYPE="submit" NAME="submit">
</FORM>

The things in bold should be edited to fit your needs:

 

  • username@yourdomain.com : where you want the mail to go; it does not have to be on our system.

     

  • http://go.here.after.the.form.com : Usually, when a form is submitted, the users sees a basic page saying "Your mail has been sent". This field sends the form user to an HTML page that you specify instead. You can use this page to tell the user that the form was sent successfully, and to give the user a link back to your home page.

     

  • Required : this allows you to require certain fields. The browser will not permit the form to be submitted unless the specified fields have been filled in.

     

  • order : this allows you to sort the fields in the resultant email. If you to not specify an order the results will not be emailed to you.

     

  • env_report : This captures client info and brings it to you in the email.

     

  • Text fields : You can change the sizes of the text entry boxes. The standard text box (INPUT TYPE="text") has a size attribute which changes the length, and a maxlength attribute which controls how much text can be entered in the box, regardless of how long it is. The textarea element can have the cols (width) or rows (height) edited.

     

Sender's Address

If you are receiving forms from this script, rather than from your visitor's email address, you must set your form to use a field named email.

Use the following code in your page to ensure that you are capturing the visitor's email address:

<input type="text" name="email">

 





Need More Help?

Leave Feedback & Post Bugs | Privacy Policy

Net Access members agree to abide by our Acceptable Use Policy - Terms of Service.
(C) 1995-2009, Net Access Corporation - All Rights Reserved
All content on this website is property of Net Access Corporation