[ Insiteweb Home Page
Basics
Sending a Thank You Page
Secure Server
To modify an existing HTML form to work with the script cgiemail you will need to use the following form action within your HTML code:
<form method="post" action="/cgi-bin/cgiemail/mailform.txt">
Please Note: If you are a FrontPage user with the FrontPage 98 extensions installed on your site, you will use this path instead:
<form method="post" action="/cgibin/cgiemail/mailform.txt">
(The difference is that you are using "cgibin" instead of "cgi-bin".)
This code calls the preinstalled script cgiemail which is in the server's cgi-bin directory once the web page visitor clicks the "submit" button. The script cgiemail 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.
You can create the template in a basic text editor (such as MS Notepad) beginning with the following two lines:
To: 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 blanklines 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 From: [email] Subject: Information Request Name [name] Address [address] Phone [telno]
As long as each form field name is contained within brackets ("[ ]") within the template, the email should be sent successfully and contain all submitted data. We suggest using all lowercase field names within your HTML form and template.
If you want a specific web page to load when the email is successfully sent, such as a thank you note, add the following code to your HTML form:
Substitute the URL of the file you wish to load after form data is submitted. The field name in this case MUST be "success", but does not need to be added to the template.
<form method="post" action="/cgi-bin/cgiemail/mailform.txt">
<form method="post" action="https://wwwXXXX.insitewebdesign.com/cgi-bin/cgiemail/<yourdomain>/mailform.txt">
<form method="post" action="https://wwwXXXX.securedweb.net/cgi-bin/cgiemail/<yourdomain>/mailform.txt">where XXXX should be substituted with the number of your server.
<form method="post" action="https://wwwXXXX.insitewebdesign.com/cgi-bin/cgiemail/<yourdomain>/frontpage/mailform.txt">
<form method="post" action="https://wwwXXXX.securedweb.net/cgi-bin/cgiemail/<yourdomain>/wwwfp/mailform.txt">
where XXXX should be substituted with the number of your server. Be sure to check our SSL page for the correct secure server name above.
IMPORTANT THINGS TO REMEMBER:
<form method="post" action="/cgi-bin/cgiemail/mailform.txt"> the mailform.txt file is in your root directory
<form method="post" action="/cgi-bin/cgiemail/forms/mailform.txt"> the mailform.txt file is in directory called forms
Try our test email form.
See the source of the testform.txt template.
These pages are for Insiteweb customer support only. While every effort is made to keep these pages current Insiteweb cannot be held responsible for loss or damage to files or equipment due to procedures stated on this website. You must agree to the insitewebdesigncom terms of service prior to using this information.