Hello and sorry for the late reply,
Yes, I tried putting that code into the Admin Notification email, but now It is ONLY going to that specified address, and the admins are not getting the email as they were before. Do I need to replace the "user_email" with "admin_email"?
In that case, can you try it with that kind of code :
<?php
$userGroups = JAccess::getGroupsByUser($data->customer->user_cms_id);
if(in_array(10,$userGroups)){
$mail->cc_email = 'manage@companya.com'; //for users in the user group with the id 10
}elseif(in_array(12,$userGroups)){
$mail->cc_email = 'manage@companyc.com'; //for users in the user group with the id 12
}
?>
Also, concerning the second part of my question, how do I create a NEW email? There is a list of 15 emails, but no apparent way to add a new notification.
There is actually no option to create a new email for the moment, so the solution will directly be to create that email using code customization.
Best regards,
Mohamed Thelji.