Forum Moderators: coopster
Another website suggested I get around "register globals" limitations by inserting import_request_variables("gpc"); at the beginning of the script. This I did.
The domain is set up with its MX records pointing to Google Apps for Your Domain (gmail), if that matters.
To add to the puzzle (as if that weren't enough), during testing, the "recipient" is set up to send form output to the webmaster's email address, rather than the owner of the domain.
At any rate, the techies at the hosting company see no reason why all this shouldn't be okay. They say it's either a scripting error or a spam filter. The script works fine for another client hosted on Yahoo! and the webmaster has no spam filter...
I (the so-called webmaster) am at wit's end and would welcome suggestions for further diddling. (Please explain carefully as, again, I'm no PHP geek.)
Another website suggested I get around "register globals" limitations by inserting import_request_variables("gpc"); at the beginning of the script. This I did.
That was not very good advice. Security is not something you should be bypassing and there is a reason that the script fails if you have to use patchy workarounds to get it functioning. The formmail script you are using is sub-par and I would highly recommend you develop your own or find something else.
Insofar as other scripts are concerned, I tried a phpFormgen available via Fantastico and another (I forget its name... I'm rather exhausted by now...)
I also tried a Perl script downloaded from Sourceforge.net
All these failed with the same symptom.
The host techies thought my "sendmail()" was incorrectly coded even though I had told them I was using "mail()" (?)
So, for now, I'm using a hosted off-site form service (jotform).
Since this host is new and "still under warranty" I think I shall chicken out, withdraw, and regroup elsewhere. My bad.
Thanks for tolerating me on this one.
PHP's mail() function invokes the sendmail utility on the server. There is an optional parameter that you can pass to sendmail that you may consider trying. Example 3 on the PHP manual page for mail [php.net] demonstrates it's use.
Hello Steven,
I do believe formmail has been blocked on ASO servers. So that I may better assist you, I have moved your ticket to our level 2 support department. Thanks!
the next reply told me i should use cgi version.
explains why half my scripts have been having problems.