Web Design Stuff
HTML Tutorials    CSS Tutorials    Web Hosting   Resources
Create a Web Page 101
Making Web Pages Intro What is a Web Page? Why Make a Web Page? The History of HTML Learn HTML or XHTML?
Basic HTML
Basic HTML Tutorials Basic HTML Necessities How to Make a Web Page How to Edit a Web Page The Basics of HTML Tags Basic HTML Page Structure HTML Attributes
HTML Font Codes
HTML Font Codes Intro HTML Font Color Codes HTML Font Size Codes HTML Font Style Codes HTML Bold/Italic Codes Combining Font Codes
Formatting Text
Formatting Text Intro Making Paragraphs Miscellaneous Formatting Headings & Subheadings Creating Hyperlinks
Using Graphics
Using Graphics on the Web Add Graphics to Your Pages Graphics and Accessibility How to Align Graphics Page Color & Background Graphics as Hyperlinks Horizontal Rules
Creating Tables
HTML Tables Tutorials HTML Table Fundamentals Background & Border Color Table Frames & Rules Table Width and Alignment Cells 1 -Space & Alignment Cells 2 -Row Column Span Cells 3 -Width & Height
Making Lists
HTML Lists Tutorials Bulleted Lists Numbered Lists Definition Lists
HTML Frames
HTML Frames Tutorials Using Frames for Layout Advanced Frame Layouts Putting Hyperlinks in Frames Frame Border Width Color, Margin and Control Problems with Frames SmartFrames: A Solution SSI: An Alternative to Frames
Web Page Forms
Making Feedback Forms A Simple Feedback Form Installing NMS FormMail Debugging Your Setup My Web Host is Out to Lunch User Input Components Text Fields Checkboxes & Radio Buttons Dropdown Menus Push Buttons Layout and Presentation
Basic CSS
Basic CSS Tutorials What is CSS? Why You Should Use CSS How to Use CSS Inline Styles Embedded Style Sheets External Style Sheets Class Selectors ID Selectors Combining Selectors
CSS Properties
CSS Properties Intro Font Styles Width, Height & Spacing Borders Backgrounds Position Float & Alignment Hyperlinks
All About Web Hosting
Hosting Your Own Website What is a Web Host? Your Website's Home Page Building a Website Offline About Free Web Hosting Best Free Web Hosting Commercial Web Hosting How to Get a Domain Name Ecommerce Web Hosting Web Hosting Terminology
Free Web Design Tools
Best Free Website Tools Best Free Text Editors Best Free Graphics Editors Free Website Analysis Tools
Setting Up HTML Kit
HTML Kit Introduction How to install HTML Kit Screenshot Breakdown Basic Configuration Overall Appearance Shortcuts and Startup Editing Window Customizing Toolbars Using the Favorites Tab Making a New Actions Bar Odds and Ends
Free Templates
Free Website Templates Two Column Fixed Width Three Column Liquid Layout Miscellaneous Templates Dynamic Menu Effects Two Column Experimental Terms of Use About These Templates
Website Templates Help
Getting Started Template Zip File Download How to Edit Your Template What to Edit in the HTML How to Add Your Logo Making a Website
Web Design Tips
Web Design Basics Tables vs. Tableless Using Tables for Layout Example Table Layouts World's Crappiest Web Page
Twitter Backgrounds
Twitter Backgrounds Intro Cool Twitter Backgrounds Cool Twitter Backgrounds 2 Plain Twitter Backgrounds Dark Twitter Backgrounds Best Twitter Backgrounds Cute Twitter Backgrounds Music Twitter Backgrounds Music Twitter Backgrounds 2 Twitter Backgrounds 101 TERMS OF USE
All About Web Browsers
What is a Web Browser? Mozilla Firefox Internet Explorer Opera How to Set Up Firefox Top 5 Firefox Extensions
 
Contact
Post Some Feedback Send Me An Email Iron Spider Blog About Iron Spider... Site Conventions
 
 
 

 

NMS FormMail - Debugging Your Setup

 
Okay, let's say that:
  1. You created a simple feedback form page.
  2. You took a run through the Iron Spider tutorial on how to install NMS FormMail.
  3. You filled in your feedback form and clicked on the submit button.
  4. You were confronted with an Application Error page or, worse, the dreaded 500 Internal Server Error page.
  5. You repeated steps C and D several times because you didn't know what else to do.
Now before you start tearing your hair out, take a deep breath, relax and repeat to yourself as many times as necessary:
"NMS FormMail is a quality form-to-email Perl script. This is just a simple omission or typo on my part. It CAN be fixed."
Alright then, so now that you are in the right frame of mind, let's get down to some simple debugging.

Error Messages


First let's deal with some common error messages that your web browser might have spit out after you clicked on the submit button in your feedback form.

  1. If you got the following error message:

    Not Found

    The requested document was not found on this server.
    Doublecheck in the HTML of your feedback form to make sure that you have the proper URL in the action attribute of the <form> start tag.


  2. If you got the following infamous error message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator blah blah blah...
    Contact the server adminstrator? Yeah right... Been there. Done that. (*chuckle*)... Generally a waste of time.

    You'd be better off to first try one or both of the following:

    1. Check the shebang line to make sure you have the correct path to Perl.
    2. Check the file permissions to see if they have been set correctly.


  3. If you got the following error message:

    Application Error

    An error has occurred in the program

    close sendmail pipe failed, mailprog=[/usr/bin/sendmail -oi -t] at (eval 6) line 108
      (Red emphasis mine)
    Doublecheck to make sure that you have the correct path to Sendmail.

    (The part highlighted in red is an example only. The path to Sendmail varies from one server to the next. Check with your web host's technical support to verify this or, if they're not available, try this.)

  4. If you got the following error message:

    Bad Referrer - Access Denied

    The form attempting to use this script resides at http://www.your_site.com/test/contact.htm, which is not allowed to access this program.

    If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

    Add 'www.your_site.com' to your @referers array.



    FormMail © 2001-2003 London Perl Mongers

    This is fairly self-explanatory but if you still don't get it then what it's telling you is to return to step #2(c) and double-check to see that you have the right domain name entered.

Do It Over Again


As arduous as this may seem, sometimes the best solution to debugging your NMS FormMail setup may be to simply start over.

This is because chances are good that:
  1. You made some kind of slip-up when editing FormMail.pl and you blew away the syntax of the Perl scripting.

    AND...

  2. You don't know the first thing about Perl scripting and hence don't know how to correct the syntax error.

One stray comma, quotation mark, period or whatever can cause a Perl script to suddenly turn up its nose and refuse to run. The result of this is usually an error page in your web browser that either makes no sense to you and/or tells you nothing (e.g. 500 Internal Server Error).

So if you've tried everything else and have now come to the point where you've decided to open up FormMail.pl in a text editor and attempt to plow through a page full of Perlese (which might as well be written in ancient Egyptian heiroglyphics) looking for that stray comma... STOP.

You might be better to just simply wipe the slate clean, extract a fresh copy of FormMail.pl from your downloaded zip file and very carefully run through all the setup steps again. Operative words: very carefully.


Helpful Links


Still stuck? Here's some links which may help you out:

  1. NMS Programs page
    Go here to download the most current version of NMS FormMail. If this is not the same as that which I make available for download on the installation page then by all means feel free to rattle my cage and kick my butt.
  2. NMS FAQ page
    Go here for the answers to some frequently asked questions about NMS programs.
  3. NMS Mailing List archives
    Go here to browse through questions and answers to see if someone else has already posted something relevant to your situation.
  4. NMS Support page
    And finally (operative word: finally), go here to fill out an email form to ask NMS programmers to help you with your setup.

*   *   *


So up to now, we've been using a simple feedback form to avoid overwhelming newcomers with a truckload of HTML markup. You may, however, wish to create something that is a little more advanced. If so then continue on User Input Components which is the first in a series of pages rendering a complete rundown of all the stuff you can put in web forms...





Best Free Stuff
for webmasters

Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates

See also:

Best Free Web Hosting

 

If you need a .COM web address, you can get one quick and easy at...

www.GoDaddy.com
<~ BACK TOP NEXT ~>
 
HTML Tutorials |  CSS Tutorials |  Web Hosting |  Domain Names |  Web Design Resources
Iron Spider © Copyright 2004-2011 Robert Darrell