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);

?>

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

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

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

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.