Hi,
In my module I need to send a message to users in a role. I have tried using ToRoleID in DotNetNuke.Services.Messaging.Data.Message but the message only gets sendt when sending to users using ToUserID.
I do get a scheduler exception:
AssemblyVersion: 6.0.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5e4c5a75-0bfa-40a6-8560-441561856073
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.Messaging.Scheduler.MessagingScheduler.SendMessage
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Messaging.Scheduler.MessagingScheduler.SendMessage(Message objMessage) at DotNetNuke.Services.Messaging.Scheduler.MessagingScheduler.DoWork()
I can use SendTokenizedBulkEmail and AddAddressedRole(rolename) instead but I want the message to go to both email and as DNN internal message and I don't want the administrator report.