I need to send an email to 4 people. Do I have to call mail() 4 times, or can I set up a cc: with 3 addresses?
I've not had success in getting the emails to go to all 4 addresses. Here's one version I tried:
- Code: Select all
$ccEmail1 = "\"" . $name1 . "\" <" . $email1 . ">";
$ccEmail2 = "\"" . $name2 . "\" <" . $name2 . ">";
$ccEmail3 = "\"" . $name3 . "\" <" . $email3 . ">";
...
$rHeaders .= "Cc: " . $toEmail1 . ", " . $toEmail2 . ", " . $toEmail3 . "\n";
...
Am I on the right track?
Also, if I use mail() to send an email to 4 different addresses at the same time, all to the same domain (they're all me), I should get 4 emails, shouldn't I? I'm not getting them, and I just wanted to be sure that it wasn't a "feature" of the mail server or Apache or something to delete duplicates to the same address when sent with the same call to mail().



