, . , . :
<?php
$people = array("person1@mail.com", "person2@mail.com", "person3@mail.com");
foreach($people as $p) {
$message = "Line 1\r\nLine 2\r\nLine 3";
mail($p, 'My Subject', $message);
};
?>
You can also use the BCC field (this is a blind carbon copy).
PHPMailer, as suggested earlier, is good, but you should note that CC (plain copy) will still be visible to other people on the mailing list.
source
share