...
If the condition evaluates to false
, an e mail shall be sent if an e mail address is specified. First, it is verify whether an e mail is specified i.e. whether it is not nil. To send an e mail, the LUA function nxa.XMail is used. The first parameter is the Profile Name . In our example, it is provided by the third parameter of the LUA function LimitValue
. The third parameter is the subject of the e mail, the forth the body, and the fifth is an optional file as attachment. The subject and body are strings. As body, LUA string concatenation using ..
is used in order to include the Item ID that triggers the tasks using nxa.SourceItemID().
...
BMS Platform provides a new messenger module which can be used for creating new email profiles for different use, in the following article more info about how to create and configure E-Mail profile.
...