|
If you tried copying the above and it did not work, here are some things to look for:
1. Is the HTML document calling the cgiemail correctly?
On our Commercial Server it should look like:
<form method="post" action="/cgi-bin/cgiemail/template.txt">
On our Personal Server it should look like:
<form method="post" action="/cgi-bin/cgiemail/~username/template.txt">
(*Note: The name of the text document must match with what is being called from the HTML document, including capitalizations. Spaces not recommended in file names.)
2. Is the text template in the www folder (for Personal Server) or the root folder (for Commercial Server)? Is it setup correctly? The text template will look the same for both Servers.
Here is a basic sample we'll call template.txt.
From: [required-emailaddr]
To: John Doe <jdoe@gwi.net> (must use < > around email address)
Subject: E-mail Response Form
Information obtained by customers
Name: [firstname] [lastname] (values in HTML doc must match bracketed items)
Email Address: [required-emailaddr]
City: [city] St: [state]
Country: [country]
Comments: [comments]
Here is a basic sample of the HTML doc to go with template.txt.
<html>
<body>
<form method="post" action="/cgi-bin/cgiemail/template.txt">
<br>
<h5><font color=#0000ff>*</font> = (required field)</h5>
<br>
<input type="text" name="firstname" size="30" maxlength="30">First Name
<br>
<input type="text" name="lastname" size="30" maxlength="30">Last Name
<br>
<input type="text" name="required-emailaddr" size="30" maxlength="30">Email Address <font color=#0000ff>*</font>
<br>
<input type="text" name="city" size="30" maxlength="30">City
<br>
<input type="text" name="state" size="30" maxlength="30">St
<br>
<input type="text" name="country" size="30" maxlength="30">Country
<br>
Comments:
<br>
<textarea name="comments" rows="5" columns="40"></textarea>
<br>
<input type="hidden" name="success" value="http://www.gwi.net/">
<input type="reset" value="Reset"> <input type="submit" value="Submit">
</form>
</body>
</html>
You can copy and paste the template and HTML doc into your own files called form.html and template.txt and upload them to your website to test. If you are uploading to our Personal Server you must edit two things. 1) In the template, change jdoe@gwi.net to your own email address. 2) Add ~username(where username is YOUR username) in the form line as specified in #1. for Personal Server. If you are uploading to our Commercial Server the only thing you need to change is the email address from jdoe@gwi.net to your own. You can make these fields required by adding required- like we did for the email address (e.g. required-emailaddr).
3. Check Permissions
Check permissions on the cgi-bin.
It should be 755 or drwxr-xr-x.
Check permissions on cgiemail.
It should be 755 or -rwxr-xr-x.
(*Note: cgiemail must be installed in your cgi-bin on our Commercial Server. If you need cgiemail installed, please call Technical Support at 800-229-2096 or email support@gwi.net. Our Personal Server does not require the cgi-bin or cgiemail to be installed.)
These are the three major things to look for when cgiemail is not working. If you need more help, check out: http://web.mit.edu/wwwdev/cgiemail/.
|