Learn More





New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Private messages between usersPrivate messages between users
New Post
2/28/2018 2:43 AM

I need to implement private messages between users. I tried Core Messaging Module messages but it's doesn't support HTML. 

Why? Notifications does. But user can't replay to notification.
Any idea how to do it? Maybe some live exchange or a forum modules will help?



New Post
3/1/2018 12:14 AM

Because Core Messaging Module doesn't support HTML I need to create my own module based on DotNetNuke.Services.Social.Messaging.MessagingController and DotNetNuke.Services.Social.Messaging.Message.

The only problem I have is how to replay to a message?

In the table dbo.CoreMessaging_Messages there is a field ConversationId that keep a Message ID from the original message. 

Let say original message has MessageID #123. I need to replay to this message and I'm expecting that ConversationId will have this 123.

It works if I open a message Core Messaging Module page and click replay. But I'm not able to do it programmatically.

I login as user 1, creating a message. Now both MessageID and ConversationId have the same value 123.

I'm login from another browser under user 2 user name, creating a message and assign a value to the property .DotNetNuke.Services.Social.Messaging.Message.ConversationId the same value 123.

It doesn't work. Message created by ConversationId has a different value (for example 124).

In both original and replay message subject hasn't chnaged

Here is my code.

  Private Sub SendSocialMessage()

        Dim Mymessage As New DotNetNuke.Services.Social.Messaging.Message

        Dim mc As New DotNetNuke.Services.Social.Messaging.MessagingController

        Dim oUser As New UserInfo

        Dim oSender As New UserInfo

        Dim _PortalSettings As PortalSettings = PortalController.Instance.GetCurrentPortalSettings

        Dim UserList As New List(Of UserInfo)


            oSender = _PortalSettings.UserInfo

            Dim rec As String = ""

            If oSender.Username = "user1" Then

                rec = "user2"


                rec = "user1"

            End If

            oUser = UserController.GetUserByName(0, rec)


            With Mymessage

                .Body = "Some Body Text"

                .Subject = "some subject text"

                .From = oSender.Username

                .SenderUserID = oSender.UserID

                .To = oUser.Username

                .ConversationId = 123

                .MessageID = 123

                .KeyID = 123

                .ReplyAllAllowed = True

            End With

            mc.SendMessage(Mymessage, Nothing, UserList, Nothing, oSender)


        Catch ex As Exception



        End Try


    End Sub


HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Private messages between usersPrivate messages between users

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out