Translations:Notification module/5/en: различия между версиями

Материал из Wiren Board
(Новая страница: «==How to set up notifications with more complex conditions== The notification module is designed to quickly configure simple notifications. If you need more compl…»)
 
м (FuzzyBot переименовал страницу Translations:Модуль уведомлений/5/en в Translations:Notification module/5/en без оставления перенаправления: Часть переводимой страницы Модуль уведомлений.)
 
(нет различий)

Текущая версия на 18:41, 23 мая 2020

Определение сообщения (Notification module)
==Как настроить уведомления с более сложными условиями==
Модуль уведомлений предназначен для быстрой настройки простых уведомлений. Если вам нужны более сложные сценарии уведомлений, их можно запрограммировать через [[Движок правил wb-rules | движок правил]]. Чтобы отправить сообщение, из правила нужно вызвать функцию
<syntaxhighlight lang="ecmascript">
Notify.sendEmail(to, subject, text); //отправляет почту указанному адресату (to), с указанной темой (subject) и содержимым (text)
</syntaxhighlight>
или
<syntaxhighlight lang="ecmascript">
Notify.sendSMS(to, text); //отправляет SMS на указанный номер (to) с указанным содержимым (text)
</syntaxhighlight>

How to set up notifications with more complex conditions

The notification module is designed to quickly configure simple notifications. If you need more complex notification scripts, they can be programmed via rules engine. To send a message, call the function from the rule

Notify.sendEmail(to, subject, text); //sends mail to the specified recipient (to), with the specified subject and content (text)

or

Notify.sendSMS(to, text); //sends SMS to specified number (to) with specified content (text)