The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FormMail.cgi - very mysterious puzzle, need help

Discussion in 'E-mail Discussions' started by jols, Aug 24, 2007.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Could someone please fill out this form and tell me what you get?

    (URL removed, problem solved.)

    If you get this:
    -------------------------
    There are missing fields!
    recipient is missing

    Form Dump:
    -------------------------

    Then check out the script via view source, and see if you can figure out why.

    What's very strange:

    This, very simple form, comes up with the missing fields error when using any browser EXCEPT apparently Mac Safari

    A real puzzle.

    I've tried this with formmail.pl, formmail.cgi and every other avaible version of the form mail app in cPanel. But still the same results.
     
    #1 jols, Aug 24, 2007
    Last edited: Aug 24, 2007
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,280
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    I think that with Cpanel's formmail, the recipient must be in your domain (or in the domain of some domain that is hosted on the same server). For isntance, I think with the default Cpanel formmail you couldn't set hte recipient to blah@aol.com.

    Also, maybe it is having trouble because you have a " - " in the email address. It may need to be escaped out or something like blah@blah\-wam.com

    Just a guess. THe form looks good, although I didn't peruse it from top to bottom.

    Mike
     
  3. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,280
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Ok the problem is this:

    <form action="/cgi-sys/FormMail.cgi" method="post" enctype="text/plain">

    If you take out the portion that is in red, it will work.

    Mike
     
  4. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Yup, the form is set up to send email to the same hosting account where this form page is hosted. And yes, the email account is set up and working.

    Okay, good idea. Yes, this is just how their domain is spelled out. But I wonder why Mac OSX would be okay with this, but other browsers are not? (If anything, it's usually the other way around.)

    Thanks very much for taking the time to take a look Mike.

    ----

    Regarding your other post. I will try removing enctype="text/plain".

    Thanks again.
     
  5. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38

    Sheesh! That was it. Thanks for the second pair of eyes.

    Don't know how I missed this one.
     
  6. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,280
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    You are welcome!
     

Share This Page