PHP form send email to multiple recipients
Solution 1:
This will work:
$email_to = "[email protected],[email protected],[email protected]";
Solution 2:
Use comma separated values as below.
$email_to = 'Mary <[email protected]>, Kelly <[email protected]>';
@mail($email_to, $email_subject, $email_message, $headers);
or run a foreach for email address
//list of emails in array format and each one will see their own to email address
$arrEmail = array('Mary <[email protected]>', 'Kelly <[email protected]>');
foreach($arrEmail as $key => $email_to)
@mail($email_to, $email_subject, $email_message, $headers);