Introduction
The integrated Messenger messenger module of the NETx BMS Core Server allows to add email that can be used to send Alarms, Conditions or Timed notifications. send an email in an action used in an alarm or a scheduler event.
Prerequisites
- An Email email address is required.
- Enabling SMTP Access access allows you to send email through your own mail server.
- For Gmail, enable Less secure app access.
...
Core Server configuration
Open the Modules / Messgenger /[Live] Email configuration within the Messenger Module menu entry and add a new definition (right click , / Insert new definition).
In the Email Definitions you will need to insert a new definition.
Provide the following information for an email profile:
Field | Description |
---|---|
Profile | The profile name. |
FromAn email address identifies an email box to which email messages are delivered | The email address used in the from field of a sent mail. |
HostAn | email hosting serviceHost name or IP address of the SMTP server. |
Port | Hosting SMTP service port number. |
UseAuthentication | Login flag. |
Username | Email Login for the SMTP server (typically email or user name used for login). |
Password | Login Passwordpassword. |
UseSsl | SSL Flagflag. |
In the next picture an example Example of an email profile:
This email definition can be applied by Profile name.
Send a test
...
As mentioned in the Messenger module configuration, NETx BMS Platform ships with pre-built messenger CommandsXCommands.
We We can use the "MESSENGER.SENDEMAIL" Command XCommand to send a test email.
Select the "Run In the Core Studio, select the Tools / Run XCommand..." menu entry within the "Tools" menu entry of the NETx BMS Core Studio menu entry.
Select the "MESSENGER.SENDEMAIL" Command, enter the name of the previously configured profile Command. Provide the messenger mail profile name, the recipient's email address, the subject, a body and an optional attachment.
Click "Execute" to send the email. You should get receive an email from the configured Profileprofile's email to the destination email.