You can automatically send emails on Alarms, Events and Schedules.
Go to Parameters and you’ll find the following settings:
Set the parameters as following:
Parameter |
Description |
SMTP Server |
Set the email server. For example: smtp.office365.com smtp.gmail.com (!) Note that you will need to allow access from third party applications. |
SMTP Username |
The email address of the account to send the email |
SMTP Password |
The password of the account to send the email |
SMTP Sender |
The email address that will be mentioned as Sender. Note that this is not always allowed by default. |
SMTP TLS |
Set a fixed value. |
The email client has been tested with both Microsoft and Google mail servers.
Note that for both Microsoft and Google you will need to allow access to send emails from third party applications, see subchapters below. For example, for google, you’ll need to turn on less secure apps and create an app-specific password. For example, in Microsoft you need to turn off the security default.
Now, go to actions of Alarms, Events or Schedules, and choose “Send Email”.
As a destination you can either provide an email address, or you can provide a string variable that contains the email address.
You could write a Python script (see chapter Python), that dynamically sets the email address to the team or person on duty (the same python script could load a schedule through a REST API or third party for example).
Email placeholders
Placeholders are supported in the body of the message.
{Device.Variable} is supported everywhere and will replace this by the variable value.
{Condition} {OnTime} {Message} {Severity} {Asset} are supported by actions triggered by alarms.
{FromTime} {ToTime} {Repeat} {Asset} are supported by actions triggered by schedules.
Microsoft 365
In portal.azure.com, disable the security for this account in Microsoft Entra ID (previously Azure Active Directory) in order to be used with external services (like EnvisionSCADA). Preferably, use a dedicated account for services like this, and not your personal account.
Next in admin.microsoft.com, allow the email address to be used with SMTP.
EnvisionSCADA should now be able to send emails using this account.
Gmail
In admin.google.com, allow users to manage their access to less secure apps. Preferably, use a dedicated account for services like this, and not your personal account.
Next in myaccount.google.com, add an App password. This allows third party apps to use this account to send emails, using a different password from the account password. Use this app password in EnvisionSCADA.