Thanks, I know it is not the code. I have been using the email function for over 4 years now. I actually think it is a problem with the server. Like I said, it started out of the blue and I see now that the email server has also stopped. I haven't changed a configuration on the server in over two months. All pages doing a HTTP POST have this problem.
This all began with the latest Sun Sendmail Patch. It is either some type of hung server process or a gremlin. I submitted a POST on Sun's site, but I am not crossing my fingers. I ran "PS AUX" as root and there is nothing eating up server cpu either.
---------- here it is for kicks --------
if(the form was submitted){ /// process the form below
$POST['comments'] = substr(AHPfilter($POST['comments'], '', ''), 0,1000);
$POST['subject'] = substr(AHPfilter($POST['subject'], '', ''), 0,150);
///csupport@xxxxxxxxxxxx.com
mail("csupport@xxxxxxxxxxx.com", "Feedback: ".$POST['subject'],"
This email was sent from the CPI folder from:
Name: ".$SESSION['clientfirstname']." ".$SESSION['clientlastname']."
Email: ".$SESSION['clientEmail']."
Member ID: ".$SESSION['clientRowID']."
Subject: ".$POST['subject']."
Comments: ".$_POST['comments']."
Date: ".date("m.d.Y h:i:s a")."
Requester: $SERVER[REQUEST_URI]
Script: $SERVER[PHP_SELF]
OS: $SERVER[HTTP_USER_AGENT]
IP: $SERVER[REMOTE_ADDR]
PORT: $SERVER[SERVER_PORT]
Referer: $SERVER[REFERER]
Method: $SERVER[REQUEST_METHOD]
", "From:Site Feedback<feedback@xxxxxxxxxx.com>");
print "<BR><BR><center></b>Thank you $SESSION[clientfirstname]. An email has been sent to Customer Support.</b></center><blockquote><i>".nl2br($_POST['comments'])."</i></blockquote>";
}
Ron