I am not sure why the { and } are surrounding the globals. I don’t know if that would impact it or not. (Again I have never used them in that way. It may be correct)
Also what is the value of mailto? AND actual value from the other variables. (Not just how they are initialized.)
If you could echo out the variables (before the MAIL() function) and post them, that might help.
Again, I am concerned about the { and } around the HTTP_POST_VARS in the various locations. Additionally, it’s my understanding that using the posted Vars in that way can create security risks (although I am not sure what they are).
I would recommend that it’s time for you to upgrade as well to the$_POST method.
[php]
$title = “Submit your Meter Readings”;
$home = “http://www.ourdomain.net”;
$mailto = "[email protected]";
$number = “Information Submitted From IP $_SERVER[REMOTE_ADDR]”;
PRINT "Thank you
Your message has been sent. Thank you “.$_POST[‘AcctName’].”, for sending your meter readings. $number and has been logged.
yes, I was talking about that line. I removed the “;” because the Parse error message said it was unexpected. I’ll put it back and remove the “.” and try it. I’ll post back. Thanks again!
Update: I put the “;” back and got rid of the “.”, and the error message is still gone, but no email is being sent/received.
Can we now look at the email function part of it and make sure that’s correct? I can’t imagine why that would have changed with an update…but I only dabble in PHP, so I don’t know.
i can’t find any other errors. maybe it’s the mailserver malefunctioning.
do u have access to the error log’s?
if not i would contact the provider, telling him the prob, and giving him the exact time of one of the testmails. then it should be easy for them to check their logs for errors.
Also since this is on a windows system, they may need to “Adjust” the php.ini since windows systems don’t (by default) have a mail server that is accessed quite like a *Nix system does.
Q1712: I tried both and they were error free, but the mail did not send.
Let me tell something that might have a bearing on it…not sure.
We have this hosting service that originally had a mail server with the package. About a year and a half ago, I wanted to run our own mail server, so we had them disable the mail part of our package. This was disabled way before this script stopped working. But if this new version 4 that they upgraded to somehow doesn’t mail in the same way, maybe our current arrangements are not going to work(?).