Hi Stephanie,
I found the solution, but it is quite confusing. Anyway, I post it here in case it helps anyone.
defVar --name Cc --type List --innertype String --value "[name@hotmail.com;name@gmail.com;name@yahoo.com]"
The variable Cc has to be a list type, but the email addresses must be separated by semicolons instead of commas. It is confusing, because the lists must be separated with comma and this way, what you are obtaining is a list with a single element, in which there are all the email addresses that you want to place in copy.
By the way, this doesn't happen with the addressees (To), you can list them separated by comma and the email is sent to all of them.
Regards,
------------------------------
Yon García Nistal
Skechers Iberia
------------------------------
Original Message:
Sent: Mon October 04, 2021 03:35 PM
From: Stephanie Wilkerson
Subject: Email is only sent to the first email address in Cc.
Hi Yon,
Another option suggested is to try using a DestinataryList, something like this:
defVar --name vDestinataryList --type List --innertype String
insert --index 1 --value "${invEmail}" --collection "${vDestinataryList}"
If this doesn't work for you, please open a support case for this one. Thanks!
------------------------------
Stephanie Wilkerson
IBM
Original Message:
Sent: Fri September 24, 2021 03:33 AM
From: Yon García Nistal
Subject: Email is only sent to the first email address in Cc.
Hello everyone,
I am trying to send an email with more than one person in copy (Cc), but when the email is sent it only picks up the first email address in the list.
For example, when executing the code in the image, the message only goes to name@outlook.com (To) and name@hotmail.com (Cc), but not to name@gmail.com and name@yahoo.com, although they are also in copy.
Does anyone know if this is a bug or can it be fixed somehow?
Thanks.
------------------------------
Yon García Nistal
Skechers Iberia
------------------------------