Description:
To setup LCOS based e-mail alerts you need to configure an SMTP mail server, as well as actions that trigger the respective behavior.
You will need to setup the following variables:
Mandatory variables:
- SMTP_SERVER
- SMTP_USER
- SMTP_PASSWORT
- MAIL_SENDER
- MAIL_TO
Optional variables:
List of used variables:
Add-in codes:
Configure email:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) {
|
---|
Add-in as JSON file:
Alerts for all connections:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) {
|
---|
Add-in as JSON file:
View file |
---|
name | alert_all_connections.json |
---|
height | 150 |
---|
|
Alerts for specific connections:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) {
|
---|
Add-in as JSON file:
View file |
---|
name | alert_specific_connection.json |
---|
height | 150 |
---|
|