Hi,
Thank you for your message.
You cannot set the recipient to contain more recipients and the for cyclus or foreach cyclus is what you need to do. It can look similar to this simple example I just tested:
// Users Array
int[] UserListID = new int[4] { 66, 68, 69, 70 };
// loop and send message
foreach (int i in UserListID)
{
CMS.Messaging.MessageInfo MyMessage = new CMS.Messaging.MessageInfo();
MyMessage.MessageSenderUserID = 53;
MyMessage.MessageSent = DateTime.Now;
MyMessage.MessageBody = "Hello, test message";
MyMessage.MessageRecipientUserID = i;
MyMessage.MessageSenderNickName = i.ToString();
MyMessage.MessageRecipientNickName = i.ToString();
CMS.Messaging.MessageInfoProvider.SetMessageInfo(MyMessage);
}
Let me know if you need further assistance.
Kind regards,
Richard Sustek