I\'m very new to PHP and am using a basic template \'send-mail\' form on a contact page. It\'s been requested that I send the email out to multiple email addresses when the
You implode an array of recipients:
$recipients = array('jack@gmail.com', 'jill@gmail.com');
mail(implode(',', $recipients), $submit, $message, $headers);
See the PHP: Mail function reference - http://php.net/manual/en/function.mail.php
Receiver, or receivers of the mail.
The formatting of this string must comply with » RFC 2822. Some examples are:
user@example.com
user@example.com
, anotheruser@example.com
, Another User <anotheruser@example.com
>