I checked the source code in admin/form_actions/email/email.php and from what I understand the following code should manage multiple addresses in one field:
// BCCs
$bccemails = array();
if(trim($email_params->get('bcc', ''))){
$bccemails = explode(",", trim($email_params->get('bcc', '')));
}
if(trim($email_params->get('dbcc', ''))){
$dynamic_bccemails = explode(",", trim($email_params->get('dbcc', '')));
foreach($dynamic_bccemails as $dynamic_bccemail){
if($form->data[trim($dynamic_bccemail)]){
$bccemails[] = $form->data[trim($dynamic_bccemail)];
}
}
}
But if I use more than one address in one of those fields I get an invalid field error. The email is sent anyway but not to those addresses.
I made a test, adding a Custom Code just before the Email action:
$form->data['bccaddresses'] = 'email1@example.com,email2@example.com';
No way, same error.
I suppose there's some check somewhere? Where?
Thank you
maxx