Hello,
I made a mail to form in Flash, and it works as far as sending the message to the receiver. However, the phone no and everything is stuck in the "from" field. I want the sender's address in the "from" field and phone no., name, etc. in the message field. My code is:
<?php
$sendTo = " joeblow@yahoo.com";
$subject = "A message from joeblow.com";
$headers = "From: " . $_POST["name"] ." " . $_POST["phone"] ."<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
This is probably simple, but I'm new to PHP. Thank you.
|