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

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:

<?php

$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?
dgrevelleAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

moonlightCommented:
please paste the form too
nepostojeci_emailCommented:
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:

http://bugs.php.net/search.php?cmd=display&search_for=mail+4.3

"Mail not being sent after PHP upgrade"
http://www.aota.net/forums/archive/index.php/t-8256.html

"mail() not working, I have just upgraded the php version and now mail() will not function?"
http://www.faqts.com/knowledge_base/view.phtml/aid/17335/fid/51

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.