+ Reply to Thread
Results 1 to 3 of 3

Thread: Required fields present but fmbadhandler says NOT?!

  1. #1
    Join Date
    Dec 2005
    Posts
    74

    Default Required fields present but fmbadhandler says NOT?!

    I probably used to know the answer to this, but I've been away from formmail for so long I CRS.

    I've got a form working at our ISP's site. The form has some PHP code in it to detect whether it's being run at the ISP or on my development system. If it's run on my box, the recipient is a bogus address caught by a mail server on my box. This has all worked in the past. But for some reason lost in the mists of time (or because I just built a new system and missed something) it has stopped working. When I complete the form, fmbadhandler gives me my form error page. telling me that fields are missing, but the errorlist is empty. I'm sure the answer is quite simple, but I think I'm now even simpler! [If fields are left blank they are properly reported as blank.]

    Development system: XPsp3, Apache 2.2, PHP 5.2, hMailServer.

    Any clues will be greatly appreciated.

    TIA.

    George

  2. #2
    Join Date
    Dec 2005
    Posts
    74

    Default Re: Required fields present but fmbadhandler says NOT?!

    Well, the answer is that PHP is not sending mail. Now all I need to do is figure out why. All of the pieces work individually; they just need to learn to play nice together!

    PHP can send mail, but formmail fails to send for some reason. testalert fails, testmail and testmail2 succeed, no entries in error log!

    g
    Last edited by GeoBrooks; 24-Aug-2009 at 02:12 PM. Reason: add info

  3. #3
    Join Date
    Dec 2005
    Posts
    74

    Default Re: Required fields present but fmbadhandler says NOT?!

    Problem solved.

    The first error was mine: in my new development environment I switched from using IIS's virtual smtp to hMailServer so I could more easily read mail using Outlook Express. IIS never required smtp authentication. hMailServer enables it by default. When I finally saw the smtp conversation that claimed authentication failed I found and turned off authentication. Since the mail server is only used internally, there's no security issue. One unresolved issue is that DEF_ALERT uses an external email address so development errors will trigger FORM errors.

    Second error, and how did this go on so long?: the TEMPLATEDIR parameter was incorrect on the live, and therefore the development, server. After modifying it to an explicit URL at the live site, all is well.

    Thanks for listening.

    George
    Last edited by GeoBrooks; 24-Aug-2009 at 09:34 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Required fields containing default text
    By tvulucy in forum FormMail Subscription Support
    Replies: 9
    Last Post: 08-Oct-2004, 10:26 PM
  2. Required Fields not working?
    By zoe77 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 02-Jun-2004, 05:27 PM
  3. Deriving fields from other fields
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 01:25 PM
  4. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 10:04 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 10:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts