I see. It doesn't really work like that by default. You would have to hand code to get that working and put things in a different order in the code. Try this:
<?php
if ("" === "") { //WA Universal Email (hand coded)
$Email = new WA_Email("event-reminder-email");
$Email->From = "Paradigm <info@paradigm.co.uk>";
$Email->addToFromRS("rsReminders","user_email");
$Email->BodyFile = "../../../webassist/email/diary-regdata-reporting-half-year.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->CC = array();
$Email->addCC($rsReminders->getColumnVal("EmailCopy",false));
$Email->Subject = "Compliance Diary Reminder - RegData Reporting (Half Year)";
$Email->onSend = new Email_Log("insert","calendar_reminders","Email",$Composite);
$Email->onSend->Query->bindColumn("Email", "s", "".($rsReminders->getColumnVal("user_email")) ."", "WA_BLANK");
$Email->onSend->Query->bindColumn("Phone", "s", "".($rsReminders->getColumnVal("PhoneNo")) ."", "WA_BLANK");
$Email->onSend->Query->bindColumn("DisplayName", "s", "".($rsReminders->getColumnVal("display_name")) ."", "WA_BLANK");
$Email->onSend->Query->bindColumn("EventName", "s", "".($rsReminders->getColumnVal("EventName")) ."", "WA_BLANK");
$Email->send($emailGroup);
}
$Email->close();
}
?>
I moved the CC line into the loop that sends the email so that it gets reset for every email and I can set it to the recordset value manually inside the loop so it will send to the corresponding row. I think that will work.