Search: Site    FAQs 
Overview
Contact Support
Internet Traffic
FAQs
Resources
Customer Login
 
 
 
 
 
 
 

FAQs

CGI Email Tutorial

The cgiemail program resides in our root system for you to use. You can find more about cgiemail at the cgiemail home page at MIT.

To modify an existing HTML form to work with the script called 'cgiemail' you will need to use the following form action within your HTML code:
 

     <form method="post" action="/cgi-bin/cgiemail/mailform.txt">

If you are a FrontPage user with the FrontPage Extensions installed on your site, you may need to use this path instead:

     <form method="post" action="/cgibin/cgiemail/mailform.txt">

(The difference is that you are using 'cgibin' instead of 'cgi-bin'.)

The script named cgiemail is located in the server's cgi-bin directory. Once a web page visitor clicks the "Submit" button on your form, the script cgiemail runs and in turn calls a text file (or template) called mailform.txt. The template defines the format by which the submitted form content is to be sent via email.

In the above case, the mailform.txt file is in your DocumentRoot directory. You can name mailform.txt anyname.txt and put it anywhere in your account. You just need to change the path in the above html accordingly so that the cgiemail script can find it.

You can create the template in a basic text editor (such as MS Notepad) beginning with the following two lines:

     To: username@yourdomain.com
     From: username@yourdomain.com
     Subject: Information Request

Substitute the desired recipient email address and subject above. If your form asks for the email address of the visitor (be sure to name this field: email), add this as the second line of the template:

     From: [email]

There can be no blank lines at the top of the file and no blank spaces at the beginning of these header lines.

Next, you will need to add ALL field names within the HTML form to the template in a form similar to the following:

     To: username@yourdomain.com
     Subject: Information Request
 
     Name [name]
     Address [address]
     Phone [telno]

If you want a specific web page to load when the email is successfully sent, such as a thank you note (thanks.html), add the follow code to your HTML form:

<input type="hidden" name="success" value="http://your_domain.com/thanks.html">

We Can Do It for You
We can setup and test a form for you at reasonable rates. Please contact us at 1 (877) 459-6709 to discuss your requirements.

 

Email Newsletter Signup:
transforming businesses one at a time
© 2002 NetLiance Corporation. All rights reserved. Terms of Use Privacy Statement 
online marketing services,e-mail marketing,search engine positioning specialist,website promotion services,corporate web development, professional web design development and hosting,ecommerce web hosting and design services,VBIS,Visitor Behavior Information,web analytics, emetrics,jetMerchant store builder,full service web technologies provider,web site analysis,web site promotion companies