We help IT Professionals succeed at work.

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

dgrevelle
dgrevelle asked
on
Medium Priority
240 Views
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:

<?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?
Comment
Watch Question

moonlightSenior Technology Consultant
CERTIFIED EXPERT

Commented:
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:

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

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.

OR

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.