Hi, I am trying to send 10-15 mails in one shot. But couldn’t find some thing gr8. There will be one default mail to webmaster [$to] and bcc will be from the FORM. Please guide tarun bansal http://www.licofindia.95mb.com
You'll want something like: <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: ' . "\r\n" . 'Reply-To: ' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); . "\r\n" . 'Bcc: ; ; '; mail($to, $subject, $message, $headers); ?>
TMan 's code is good. but if you don't want the hassle of headers, simply use the mail() with all the BCC being in the to field separated by commas.
I want to make it more clear i have a form say form.html with one field that inputs 10-15 mails seprated by ";" now i want to send bcc to these e-mails.