gudfry Posted August 8, 2008 Share Posted August 8, 2008 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); ?> Quote Link to comment Share on other sites More sharing options...
willyamPax Posted August 8, 2008 Share Posted August 8, 2008 chad just like this lang sample ra ni ha... $sendTo1 = $email1; $sendTo2 = $email2; mail($sendTo1, $subject, $message, $headers); mail($sendTo2, $subject, $message, $headers); ...hehehehehe Quote Link to comment Share on other sites More sharing options...
gudfry Posted August 8, 2008 Author Share Posted August 8, 2008 this not going to work, i know it Quote Link to comment Share on other sites More sharing options...
revraz Posted August 8, 2008 Share Posted August 8, 2008 Use a semi colon to seperate them? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.