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 ="[email protected]"; $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); ?> Link to comment https://forums.phpfreaks.com/topic/118725-solved-how-can-make-this-code-work-send-email-into-person/ 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 Link to comment https://forums.phpfreaks.com/topic/118725-solved-how-can-make-this-code-work-send-email-into-person/#findComment-611269 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 Link to comment https://forums.phpfreaks.com/topic/118725-solved-how-can-make-this-code-work-send-email-into-person/#findComment-611275 Share on other sites More sharing options...
revraz Posted August 8, 2008 Share Posted August 8, 2008 Use a semi colon to seperate them? Link to comment https://forums.phpfreaks.com/topic/118725-solved-how-can-make-this-code-work-send-email-into-person/#findComment-611277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.