hi php gurus... my first posting here!!!
okay, i have an swf that talks to a piece of php code... it works perfectly apart from the following
i) puts 'httpd' as the sender sender name when i receive the email in my inbox
could someone please help??? i have a deadline and have no idea as to why it is doing this when everything else works fine...
many thanks
tasvin
<?php
$sendTo = "email@email.com";
$subject = "Email from Website";
$headers = "From: " . $POST["replymail"] .">\r\n";
$headers .= "Reply-To: " . $POST["replymail"] . "\r\n";
$headers .= "Return-path: " . $_POST["replymail"];
$name = $POST["name"];
$company = $POST["company"];
$position = $POST["position"];
$phone = $POST["phone"];
$replymail = $POST["replymail"];
$project = $POST["project"];
$size = $POST["size"];
$profile = $POST["profile"];
$headers = "From: " . $from . "\r\n";
$email_body .=<<<EOD
Name - $name
Company - $company
Position - $position
Phone - $phone
Replymail - $replymail
Project - $project
Size - $size
Profile - $profile
EOD;
mail($sendTo, $subject, $email_body, $headers);
?>