We help IT Professionals succeed at work.

upgraded from php 4.2 to 4.3 after server crash - email code not working

dgrevelle asked
Medium Priority
Last Modified: 2010-04-17
upgraded from php 4.2 to 4.3 after server crash - email code not working.  I have a generic php code for a client's website that lets them create web forms without changing the php code.  However, now when the form is submited to the php code, we get an error - FOrbidden you do not have permission to access this document.  The folder and file permissions are rwx r-x r-x.  Ihave changed to 777 (rwx rwx rwx ) and it does not seem to matter.

Here is the code:


$content = "";
$formsent = $url;
while (list ($key, $val) = each ($_POST)) {
    $content .= "'$key' => $val\n";

mail($to_email, $subject, $content, 'From: info@riverbend.com' );
header ("Location: $formsent");


Any advise?
Watch Question

moonlightSenior Technology Consultant

please paste the form too
for these kind of problems, always first check the PHP bug tracking system.
here are some of the problems solved, which may also be in your case:


"Mail not being sent after PHP upgrade"

"mail() not working, I have just upgraded the php version and now mail() will not function?"

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.