Products

Solutions

Resources

Partners

Community

About

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!

Sending Social Messages via the API

Return to previous page

  • 4/7/2015
  • 2532 Views

Comments

2532 Views

Sending Social Messages via the API

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 
===Background=

DNN introduced the messaging and notification centre in 6.2.0 , where users can send and receive messages and notifications. Whilst this is similar in concept to email, it his it's own API to support sending to lists of users or/and roles (including social groups).

To send a simple messages to the current user you can use code such as :

DotNetNuke.Services.Social.Messaging.Message message = new Message();

List<UserInfo> users = new List<DotNetNuke.Entities.Users.UserInfo>();
users.Add(UserController.GetUserById(INTEGER, INTEGER));
message.Body = STRING;
message.Subject = STRING;
MessagingController.Instance.SendMessage(message, null, users, null, this.UserInfo);

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