Send notification
Description
Use this action to send notifications to users who meet the rule's conditions.
💡 In practice: this is the most common action for reminders, encouragement, and teacher alerts.
Improve notification delivery
Enhance your notifications with our Datacurso Message Hub plugins, which let you send notifications via WhatsApp and SMS using providers like Twilio. Click here to purchase and activate now!
For more information, visit the documentation page: https://docs.datacurso.com/index.php?title=Message_Hub
Configure notification sending (Required only if you have the Datacurso Message Hub plugins installed)
- Go to
Site administration > General > Messaging > Notification settings

- In the
Default notification preferencessection, findSmart Rules AI notificationand enable the option forDatacurso Message Hub.


Action configuration
-
Subject:
Define the notification subject. -
Body:
Define the notification body.

- Placeholders
You can use placeholders in the notification body to personalize the message for each user. Available placeholders:{$a->coursename}- Course name{$a->courselink}- Course link{$a->fullname}- User full name{$a->firstname}- User first name{$a->lastname}- User last name

-
Roles to notify:
Choose the course roles that determine who receives the notification when the rule matches a user.- The matched user receives the notification only if they hold at least one of the selected roles in the course.
- Additionally, other course users who hold any of the selected roles that the matched user does not hold will also receive the notification.
- Roles already held by the matched user are excluded from the "other recipients" search to avoid duplicate delivery.
Example:
- Selected roles:
Student,Teacher. - If the matched user is a
Student, they receive the notification. Other recipients will be users with theTeacherrole only (otherStudentswill not receive this notification from this action run). - If the matched user has none of the selected roles, they do not receive the notification, but users with any of the selected roles will.
