FormMail.cgi - very mysterious puzzle, need help

jols

Well-Known Member
Mar 13, 2004
1,110
3
168
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.
 
Last edited:

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
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 [email protected].

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

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

Mike
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
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
 

jols

Well-Known Member
Mar 13, 2004
1,110
3
168
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).
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.

Also, maybe it is having trouble because you have a " - " in the email address. It may need to be escaped out or something like [email protected]\-wam.com
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.
 

jols

Well-Known Member
Mar 13, 2004
1,110
3
168
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

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

Don't know how I missed this one.