Global Security Forum

Security Global Forum

Our mission is to provide clients with an online user community of industry peers and IBM experts, to exchange tips and tricks, best practices, and product knowledge. We hope the information you find here helps you maximize the value of your IBM Security solutions.

 View Only
  • 1.  Mutiple Email recipients in email message mechanism.

    Posted Tue August 29, 2023 04:07 AM

    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
    ------------------------------


  • 2.  RE: Mutiple Email recipients in email message mechanism.

    Posted Tue August 29, 2023 07:37 AM
    Edited by haxxan Hax Sun September 03, 2023 06:08 AM

    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
    ------------------------------



  • 3.  RE: Mutiple Email recipients in email message mechanism.

    Posted Tue August 29, 2023 08:24 AM

    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
    ------------------------------



  • 4.  RE: Mutiple Email recipients in email message mechanism.

    Posted Sun September 03, 2023 06:03 AM

    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.



    ------------------------------
    haxxan Hax
    ------------------------------