Tuesday, 13 March 2018

Send Multiple Email adding in Custom Label



Create Custom Label;

Name                                 Value
NotificationEmails        abc@abc.com;bcd@bcd.com



Code:
String ToAddr = System.Label.NotificationEmails;
List <String> addressList = ToAddr.split(';');
email.settoAddresses(addressList);

No comments:

Post a Comment