I know that this is likely outside of your scope, but you should retire this CGI script as soon as possible. It contains a flaw that makes it trivially easy to send spam via your mail address to any address, because you do not check that your input parameters are well-formed. Especially, no parameter should be allowed to contain a newline (\n) character.

As for your error tracking, try looking into the sendmail logfiles wherever they are, and make sure that sending mail works from the command line before trying to use it from within the webserver. You can also print out the mail into a text file and later manually pipe the text file into sendmail to see the error messages.

You can of course also look at what the NMS Formmail Script has to offer.


In reply to Re: contact form not mailing (urgent!) by Corion
in thread contact form not mailing (urgent!) by coldfingertips

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.