Contact or Quote Form Not Working

The contact form and quote form use a CGI script called formmail to send messages through your server. If this is not working here are some possible problems (also see the contact form other options support page):

File Not Found #1: Naming Problems: | Click for details
With formmail you need to upload or install formmail.pl or formmail.cgi in your cgi-bin folder and then set a path to that on your contact.htm or quotes.htm. Keep in mind that this path must be exact. Hosting is case sensitive so the path must match the file name exactly. EXAMPLE:

<form method="POST" action="http://your-domain.com/cgi-bin/formmail.pl">

In the above case the file in the cgi-bin folder is called "formmail.pl". For example "FormMail.pl" will not work as the above path does not have any capital letters in the path. As a rule, you can rename formmail.pl to all lowercase letters and use only lowercase letters on the contact page.


File Not Found #2: Naming Problems: | Click for details
In the path to call formmail, be sure you have your domain spelled correctly. This is that path:

<form method="POST" action="http://your-domain.com/cgi-bin/formmail.pl">


Bad Recipients Error: | Click for details
On the contact.htm or quotes.htm you must use an e-mail from your domain. You can not use a hotmail or Yahoo e-mail for example. This is that line on the contact page:

<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="info@your-domain.com">

If this is not the problem then check step #3 on this support page


Internal Server Error Problem #1:
This will most likely be a CHMOD problem. Try to 755 CHMOD your formmail script again. Be sure it has actually CHMODed the script to 755 by trying the CHMOD again and seeing if it shows the CHMOD 755 as being already changed. If this does not help, perhaps try the setup again from the start. Click here for step by step instructions.

  1. If you try the formmail setup again from the start and it is still not working this may be a cgi-bin problem.
  2. Check to see that the formmail script is actually CHMODed. Sometimes the CHMOD will not be working or the exact CHMOD number will not work with your hosting.
  3. Contact your hosting company to see if you can use a CHMOD 755 in your cgi-bin or what CHMOD to use in your cgi-bin.
  4. Try a CHMOD 777 or a CHMOD 750.
  5. If you do not have Allwebco hosting: The best way to proceed may be to get a sample contact form from your hosting company, get that sample form working 100% and then this can be added to the template contact.htm.

Internal Server Error Problem #2:
Any single error in the formmail.pl or .cgi file will cause this problem. Try the setup again from the start including downloading the formmail script again. Click here for step by step instructions.


Internal Server Error Problem #3:
In some cases, if this is not a CHMOD problem, you can try the following to fix this error. Edit the first line in your "formmail.pl" (or "formmail.cgi") by adding a " -w " to the end of the first line as follows:

#!/usr/local/bin/perl -w

Then re-upload the "formmail.pl" file to your "cgi-bin".


Missing or Not Working Thanks Page: | Click for details
If the thank you page does not show up after you test the form, you may not have uploaded the thanks.htm or you may have not set this path correctly on the contact or quotes HTML pages:

<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://your-domain.com/thanks.htm">


Some Form Information Is Not Sent:
If you add some fields or edit the "sort" field on your template you may get some info from the form, and might be missing other info. Please see the adding fields page to check your "sort" variable.

Godaddy and Problems With Non-Allwebco Hosting Companies:
Some hosting services, like Godaddy, use a "cgi" folder rather than a "cgi-bin" folder. Code in the "contact.htm" is setup for a "cgi-bin" folder. You will want to search for and delete the "-bin" in your "contact.htm" page. Also see the Contact and Quotes Form Setup Using Godaddy Hosting support page.

Another way to proceed, if you do not have Allwebco hosting, is to get a sample contact form from your hosting company, get the sample form working with your hosting companies instructions or support. Once the form is working, the code can be added to the template "contact.htm".



Next Page:
Quick steps to setup formmail
Allwebco Template Support



Related Topics:
Adding fields to the contact or quote form
E-mail Help and redirection
Setting up the contact form with another script
Setting up the contact form using Formmail PHP

Links:
Download FormMail
Alternate Formmail Script Support Page
Setting Up FormMail


Allwebco Template Support


Allwebco Website Template Support


Form Setup:
Overview
Basic Steps
Quick Steps
PHP Option
ASP Option
Troubleshooting
Adding Fields
Advanced Script
Alternate Scripts
Other Options


See Also...:
Sitewizard Server Errors



Free Site Design Tips and Tutorials at thesitewizard.com


Forms Included Templates
Contact and quotes form templates.
AllwebcoDesign.com
Web Template Support
Free Javascripts
Free scripts for any website or template.
Allwebco-Templates
Web Template Support
SE Optimization
Help to list better in search engines.
Allwebco-Templates
Web Template Support
Shopping Cart Templates
Professional templates with built-in Paypal.
AllwebcoDesign.com



Website Template Support
Website Template Support