Hello, Does anyone here know anything about Adobe Flex. I am using that to send the data from a form in Flex to a php form processor that emails the user input. I have this in the current form processor: $OK = mail ($mail_to, $subject, $message, $headers); if ($OK) { echo 'sent=OK'; } else { echo '&sent=ERROR'; }
My Flex application is looking for a returned value of "failed" I tried just adding else { die("failed"); } but that didn't work. Maybe it is just an Adobe Flex issue. Currently, the Flex application checks to see if the result returned if the mail sending operation failed is "ERROR", but I have a feeling that echo '&sent=ERROR'; is not sending back "ERROR" I could be wrong and that the email send has just never failed on me. If it did fail, and if that is sending back "ERROR" then I would see a different result in my application. thanks, Bruce