Function sendNotifications
Sends a notification to members who have elected to receive emails when things happen to a topic, such as replies are posted. The function automatically finds the subject and its board, and checks permissions for each member who is "signed up" for notifications. It will not send 'reply' notifications more than once in a row.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses:
language file
Located at Sources/Subs-Post.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses:
Post()
language file
Located at Sources/Subs-Post.php
array |
$topics |
Represents the topics the action is happening to. |
string |
$type |
Can be any of reply, sticky, lock, unlock, remove, move, merge, and split. An appropriate message will be sent for each. |
array |
$exclude = array() |
Members in the exclude array will not be processed for the topic with the same key. |
array |
$members_only = array() |
Are the only ones that will be sent the notification if they have it on. |