Forums

Multiple cc or bcc email addresses

rlab 31 Jan, 2012
Hi,

I am trying to figure out how to have multiple email addresses for a dynamic cc or bcc field in Chronoforms V4 RC3.0 on a Joomla 1.7.4 site.

In my On Submit Custom Code block I am trying to have the dynamic cc field, which is set to ccemail go to multiple email addresses. I have tried the following code, but neither works:

$form->data['ccemail'] = 'a@domain.ca, b@domain2.com';

or

    $form->data['ccemail'][] = 'a@domain.ca';
    $form->data['ccemail'][] = 'b@domain2.com';


I also tried putting a ; between the email addresses.

What am I doing wrong?

Thank you.
rlab 31 Jan, 2012
Hi,

Thank you. That solution worked great.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}