Can't get mail form to work

Discussion in 'HTML / PHP / JavaScript / CSS' started by srelliott, Oct 5, 2008.

  1. I'm sending variables to this php file from a flash contact form, and while this has worked on other servers in the past (they were linux/unix though), it isn't working here for some reason. Does anyone see a problem with this .php file?

    <?php
    $sendTo = "[email protected]";
    $subject = "Website Inquiry";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $messages .= "From: " . $_POST["name"] . "\r\n";
    $messages .= "Email: " . $_POST["email"] . "\r\n";
    $messages .= "------------------------------------------" . "\r\n";
    $messages .= "Message: " . $_POST["message"] . "\r\n";

    mail($sendTo, $subject, $messages, $headers);
    ?>
     
  2. Bruce

    Bruce DiscountASP.NET Staff

Share This Page