Skip to Content

Restrict emails to suppliers after termination date crosses current date


We have a requirement wherein we need to send emails to Master Agreement collaborators only and make sure that emails are not sent to suppliers(by default sent to both) when termination date crosses current date.

Any suggestion will be helpful.

Thanks & Regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 08, 2016 at 12:33 PM

    Hi Mayank,

    You have to write the custom mail using custom template provided in Mailconfiguration and in the reciepent you should give only the collaborator member mail id.

    >mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_CUSTOM_TEMPLATE1);// take teh template one

    >NotificationUtil.sendNotification(recipients, sender, mailTypeEnum, props, null, null);

    and  for colaborator recipient:

    HashMap recipientInfo = new HashMap();

    coll = IBean.getCollaborators();

    itr = coll.iterator();


    member =;


    type = member.getCollaboratorType().toString();


    recipientInfo.putAll(//get the email and name of the gropu member using HasMap));


    else if("user".equals(type)){

    recipientInfo.put(member.getCollaboratorEmail(), member.getDisplayName());


    get the email id from recipientInfo and assign to  String array "recipients"

    I think this will hep you



    Add comment
    10|10000 characters needed characters exceeded