Certainly! To send emails to multiple addresses, loop through the email addresses and set each one in the session before triggering the email-sending process for that address.
Original Message:
Sent: Tue August 29, 2023 08:23 AM
From: Manu kumar M
Subject: Mutiple Email recipients in email message mechanism.
Hi haxxan Hax,
Thank you for reverting back. As in email mechanism the Email Attribute Identifier(emailAddressInfo) will fetch the email ID from "context.set(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "emailAddressInfo", emailAddress)" so I can set this only one time and after setting the emailAddress in session the branch will execute, and email will trigger. Let me know how I can loop the email ID arrays because Email Attribute Identifier can hold only one email id. Is there any other way I can do this?
Thank you,
------------------------------
Manu kumar M
Original Message:
Sent: Tue August 29, 2023 07:13 AM
From: haxxan Hax
Subject: Mutiple Email recipients in email message mechanism.
To send emails to multiple recipients from a decision mapping rule using your Email message mechanism, adjust your approach. Instead of setting a single email address in the emailAddressInfo attribute, store an array of email addresses. Update the decision mapping rule to populate this array attribute with the desired email addresses. Then, modify your email sending logic to loop through the array and send emails individually to each address. This way, you'll be able to efficiently send emails to all five email IDs as intended.
------------------------------
haxxan Hax
Original Message:
Sent: Tue August 29, 2023 04:07 AM
From: Manu kumar M
Subject: Mutiple Email recipients in email message mechanism.
Hi,
I am using Email message mechanism to send email for end-users. I created a policy and mapping rule.
so I need to send the Email to for example 5 Email IDs. And currently Email mechanism as Email Attribute Identifier(emailAddressInfo) which will fetch the Email ID statically. As I am setting the Email id in decision mapping rule like "context.set(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "emailAddressInfo", emailAddress);" Currently Email going to only one Email ID
So, how to send email to all the 5 Email Ids from decision mapping rule.
Thank You,
------------------------------
Manu kumar M
------------------------------