Guys, I have a very strange question which I have not found any solution yet.
My bot will send some emails to several person. There will be more than one person in the CC, but not alwasy the same person. To make it clear, let’s say, there are 5 email IDs for 5 person. We can number them like this-
- A
- B
- C
- D
- E
(A,B; C; D and E are the email IDs for person 1, 2, 3, 4 and 5)
Based on various conditions, my bot will receive some numbers, e.g. 1,3,4. It means bot now has to add A, C and D in the cc field in the properties. It might be any number from the list I mentioned. It means, the email ID in cc is not fixed.
I can use condition like if bot gets 1, then A, if 1 and 2 then A and B. But how can I put these email in the cc field. Those email address A, B, C are in variables as string.
I really doubt that email in CC can come dynamically. But if someone has any solution, I would really appreciate.
Thanks and Regards,