Can I specify multiple mail recipients?
NOTE: the premium version supports multiple recipients ‘out of the box’
It’s quite easy to have the e-mail go to multiple recipients.
If you’d like the mail to openly go to more than one recipient, i.e. you don’t mind each recipient seeing the e-mail address of the other recipients, then you can specify those e-mail addresses in $yourEmail like so:
$yourEmail = "user@example.com, anotheruser@example.com"; // the email address you wish to receive these mails through
If, however, you’d like to ‘hide’ the recipients of the message, you need to send the mail to them as a “blind carbon copy”, using the Bcc command. Find:
$headers .= "Reply-To: {$_POST['email']}\r\n";
and after that line, add:
$headers .= "Bcc: user@example.com\r\n";
where user@example.com is the secondary recipient of the message.
You can specify multiple Bcc recipients by separating them with a comma:
$headers .= "Bcc: user@example.com, anotheruser@example.com\r\n";