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); ?>
Here's my test code <?php $to = "[email protected]"; $subject = "Test Mail from PHP"; $out = str_pad("This is a test", 20); $header = "From: no-body@discountasp.net\nReturn-Path: no-body@discountasp.net\nX-Mailer: PHP/" . phpversion(); mail($to, $subject, $out, $header); exit; ?> I tested this and it worked fine. Bruce DiscountASP.NET www.DiscountASP.NET