Problem with the updated WA_Email.php file - quite urgent!
Hi Ray, I've just been made aware of an issue with the above file that you kindly updated for me which I think is probably the same issue as I had with the dynamic subject line. When the emails are being sent from a recordset, the cc email is being sent to the first record in the recordset, not the one linked to the correct record. So for example, the email code is:
$Email->addToFromRS("rsReminders","user_email");
$Email->addCCFromRS("rsReminders","EmailCopy");
The first email in the loop goes to the correct people, but the second and subsequent emails all get cc'd to the EmailCopy address in the first record. Hope you can help quite urgently as I have a bunch of these email scripts that run via a scheduled task every day at midday and I want to sort it out before tomorrow! I've attached a sample email page.