Flash Emailer Help

Afternoon all,

I’m currently having problems with the .php form for a simple emailer. I can get it to work on my servers after following the tutorial, but at work it’s a no go. After spending the last hour messing around with the code I’m stumped. I am trying to change the ‘from’ address to Admin@xxxxx.com instead of the users email, this is the code I’m working with:

<?php
$sendTo  = 'David@xxxxx.com';
$subject = 'Test Email';
$headers = 'From: Admin@xxxxx.com' . "
" .
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?> 

I tried using a mix between the code at http://www.php.net/manual/en/function.mail.php and kirupa. I’m new at php so any help would be much appreciated :beer2: