amrigo
04-28-2006, 09:07 AM
Hi
I have a script to send email but i always receive messages with the server default email in the from subject instead of the real email the user type in the email field :eek:
How it be fixed? :confused:
thank´s in advance
$cod=$_REQUEST['cod'];
$dpto = "some@email.com";
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$message=$_REQUEST['message'];
$to = $dpto;
$subject = "talk with us";
$headers = "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: " . $email . "\r\n";// <" . $name . ">
mail($to, $subject, $mensagem, $headers);
echo "Your message was sent!";
I have a script to send email but i always receive messages with the server default email in the from subject instead of the real email the user type in the email field :eek:
How it be fixed? :confused:
thank´s in advance
$cod=$_REQUEST['cod'];
$dpto = "some@email.com";
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$message=$_REQUEST['message'];
$to = $dpto;
$subject = "talk with us";
$headers = "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: " . $email . "\r\n";// <" . $name . ">
mail($to, $subject, $mensagem, $headers);
echo "Your message was sent!";