• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

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?
0
dgrevelle
Asked:
dgrevelle
1 Solution
 
moonlightCommented:
please paste the form too
0
 
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

0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now