From MoodleDocs

About messaging

Unless disabled by the administrator (in Site administration > Messaging > Messaging settings), teachers, students and other users may send and receive private messages via Moodle. This is in addition to receiving notifications about assignments, forum discussions etc.

3.7 New messaging features
  • A number at the top of the screen reflects the number of people who have sent new messages.
  • Clicking the icon displays the messaging drawer, divided into starred messages, group messages and personal messages.
  • Contacts and contact requests may be accessed from the Contacts link.
  • A star may be added by clicking the three dots when viewing a message
  • From the three dots, messages may be muted, so that email notifications of new messages are no longer sent:


  • Clicking the cog icon displays privacy settings, notification preferences and the option to press enter to send messages.


Personal messaging space

Each user now has their own starred area where they can add draft messages, links and notes for later use:


Deleting messages

Messages may be deleted by clicking them, ensuring they are selected (with a visible checkmark) and then clicking the bin/trash can icon at the bottom of the messaging drawer. Note that messages are only deleted for that particular user, not others involved in the conversation.

Enabling teachers to delete the messages of others

To enable a teacher to delete messages of others in a group conversion:

  1. Create a custom role with the capability moodle/site:deleteanymessage allowed.
  2. Assign the user this role as a system role (via Site admin / Users / Permissions / Assign system roles).

Note that it is fine for a user to have the role of teacher in a course and also a system role enabling them to delete any message.


Restricting who can message you

By default when clicking the cog icon, a user has the option to restrict messages to their contacts only or to their contacts and others in their courses. However the administrator can enable site wide messaging, thus giving visibility to all users, from a setting in Site administration > Messaging > Messaging settings.

Group messaging

A teacher or user with the capability moodle/course:creategroupconversations can enable group messaging when setting up a course group. The group will then appear in the group messaging section of the messaging drawer. The teacher or other user should be a member of the group in order to see the group messages.

Sending a message to selected course participants

A teacher can send a message to course participants as follows:

  1. Go to the Participants page.
  2. Select participants from the list or use the "Select all" button at the bottom of the list.
  3. Choose "Add/send message" from the "With selected users..." drop-down menu.
  4. Assuming you are satisfied with the message, click the "Send" button.

Administrators can also send a message to users in many courses via Bulk user actions.

See also