xxxxxxxxxx
<?php
// recipient list use an array of emails
$recipients = array("recipient1@example.com", "recipient2@example.com");
// email subject
$subject = "This is an example email";
// email body
$message = "This is an example of an email sent to multiple recipients";
// send the mail
mail($recipients, $subject, $message);
?>
xxxxxxxxxx
$mail->AddAddress('person1@domain.com', 'Person One');
$mail->AddAddress('person2@domain.com', 'Person Two');
// ..
xxxxxxxxxx
## "TO" PARAMETER OF MAIL FUNCTION IN PHP
Receiver, or receivers of the mail.
Some examples are:
- user@example.com
- user@example.com, anotheruser@example.com
- User <user@example.com>
- User <user@example.com>, Another User <anotheruser@example.com>