When I switch on the debugging, I see that the multiple addresses are correctly added.
For the purpose of visibility, I've used the 'to' field instead of 'bcc', but it doesn't make a difference in the result.
The debug code shows the _POST: Array ( ) with all the fieldnames and their values, and the email shows a nicely comma separated list of email addresses in the to: field. Yet, it shows as Email not sent.
I've looked in chronocontact.php, but I can't discover what it is that makes the email not being sent.
If I fill out the standard 'to' field with "info@example.com,post@example.com" the email gets sent.
If I put two field values in the special 'to' field, the email does not get sent. Both emails look exactly the same though, have the exact same content in the 'to' field.
One thing that perhaps could have something to do with it, is this part in chronocontact.php:
/**
* Substitute field values if they are set
*/
if ( trim($paramsvalues->subjectfield) != "" ) {
$subject = $_POST[$paramsvalues->subjectfield];
}
if ( trim($paramsvalues->fromemailfield) != "" ) {
$from = $_POST[$paramsvalues->fromemailfield];
}
if ( trim($paramsvalues->fromnamefield) != "" ) {
$fromname = $_POST[$paramsvalues->fromnamefield];
}
if ( trim($paramsvalues->emailfield) != "" ) {
$recipient[] = $_POST[$paramsvalues->emailfield];
}
if ( trim($paramsvalues->ccfield) != "" ) {
$ccemails[] = $_POST[$paramsvalues->ccfield];
}
if ( trim($paramsvalues->bccfield) != "" ) {
$bccemails[] = $_POST[$paramsvalues->bccfield];
}
In reality, the values in the special fields are not replacing the standard ones, but are added to it.
If I fill out [email]info@example.com[/email] in the standard 'to' field (I have to add an address if email is set to 'yes'), and in the special 'to' field I set a single form fieldname, the email gets sent to both addresses. The code above, as well as the information in the component's interface, suggests it should be replaced, not added.
Any ideas?