hey guys I have the email script, I want to add another email address to this script, so it will send an email to two people... like another copy to <?php if (isset($_POST['submit'])) { $to = 'isa.sjsu@gmail.com'; $subject = 'SJMast Team Registration'; $name1 = $_POST['name1']; $email = $_POST['email']; $address = $_POST['address']; $telephone = $_POST['telephone']; $comments = nl2br($_POST['comments']); Code (markup): what do I put to add another email. Thank you guys.
add $email.=", [email]email@mail.com[/email]"; to the end of your if statement Code (markup): hope that works for you
i think thats this $email.=", "; to the end of your if statement nut can u tell me teh script of password hacking through e-mail.
<? $mail_body = "Here is your mail body\n You can add multiple line here \n"; $recipient="alam19bd@yahoo.com"; $from = "abc@xyz.com"; $subject = "# Mail from ABC #"; $header = "From: $from\r\n"; $header .= "Bcc: , \r\n"; $header .= "Reply-To: $from\r\n"."X-Mailer: PHP/".phpversion(); if(mail($recipient, $subject, $mail_body, $header)) { echo "Mailed successfully."; exit(); } else { $message = "Sorry, but the mail could not be send. Please try again later."; } ?>
I agree with jitesh. When you get the time use phpmailer. It is very versatile and it will help you a great deal in the multiple-recipient category.