0

hi all;

i have a code that would send in two person, after submmited the form, only one person recieve the email

here is my code;

<?php
$name    = $_POST['name'];
$sender  = $_POST['e-mail'];
$phone   = $_POST['phone']; 
$subject = $_POST['subject']; 
$message = $_POST['message']; 
$email = $_POST['email'];

$sendTo = $email;
$return_to ="frank@xxxxxxx.xxx";
$subject = '$subject';
$headers = "From: ".$_POST['name']." ".$_POST['phone']. "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " .$return_to;
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);

?>
3
Contributors
2
Replies
7
Views
8 Years
Discussion Span
Last Post by saikishore
0

you have to use another mailid in the headers only...

$mailheader .= 'BCc:some@some.com' . "\r\n";

and use one mail id in $sendto....

0

you have to use another mailid in the headers only...

$mailheader .= 'BCc:some@some.com' . "\r\n";

and use one mail id in $sendto....

Hi Shanthi..
for the same code ,,can u explain Autoreply confirmation to users...
plz...


Thanks in Advamce..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.