In order to be able to send e-mails using ibaCMC, a connection to an available SMTP mail server has to be configured. The SMTP server
connection configuration is part of the System settings, General area, Mail (SMTP) tab. The settings are stored in the file appsettings.json.
SMTP setup under System settings
You can set up the following parameters here:
Sender
Enter here the e-mail address which should be used as sender address. Optionally, you can have the plant name added automatically as a suffix.
SMTP server
Here, enter the IP address or the host name of the SMTP server and the port number for outgoing mails.
-
Port number 25 (default): unsecure connection
-
Port number 587: secure connection
Select TLS under Security, if you want to enable an encrypted e-mail transmission.
If an authentication is required for login to the SMTP-Server, then select the setting Required under Authentication. Enter the required information for Domain, User name and Password in the respective fields.
If you select None authentication, the login to the SMTP server will be executed without user credentials.
Use the <Send test email> button to verify your settings.
SMTP settings in the file appsettings.json
The SMTP settings are stored as a JSON string in the file appsettings.json as follows:
"Smtp": {
"Host": "<smtp-host>",
"Port": <smtp-port>,
"From": "<smtp-from> ",
"NetworkCredential": {
"Domain": "",
"User": "",
"Password": ""
},
"UseDefaultCredentials": true,
"EnableSsl": false
}
Meaning of parameters:
|
Parameter |
Meaning |
|---|---|
|
Host |
SMTP server address |
|
Port |
SMTP port
|
|
From |
Mail sender address, e.g. iba Monitoring <ibacms@iba-ag.com> |
|
NetworkCredential |
Domain: User domain User: User for SMTP server login Password: Password for SMTP server login |
|
UseDefaultCredentials |
true: Log on to SMTP server without Log on data (domain, user, password) false: Log on to SMTP server with the log on data given under "NetworkCredential" |
|
EnableSsl |
false: Unsecured connection true: Secure connection |
You can configure the SMTP settings also by editing this file. Then, restarting the ibaCMC service is necessary for the settings to be applied. If you do the SMTP setup in the System settings, a restart is not required.