SMTP Listener Configuration
- Last UpdatedFeb 09, 2022
- 1 minute read
Use these configuration settings to configure an SMTP listener designed for sending e-mail notifications when a new event long entry is registered.
|
Parameter Name |
Example Value |
Notes |
|---|---|---|
|
name |
SMTP |
The name of the listener. |
|
handler |
WDA.EventLogListeners.SmtpHandler, {wdaInstallPath}\Assemblies\Private\WDA.EventLogListeners.SmtpHandler.02.dll |
The name of the component, which is responsible for sending e-mail messages and the full path to it. |
|
serverAddress |
NA |
The address of the SMTP server. |
|
serverPort |
25 |
The port of the SMTP server. The parameter is optional. If it is not specified, the port 25 is used by default. |
|
smtpEnableSsl |
false |
A flag indicating whether Transport Layer Security (TLS) protocol is used to make e-mail message sending secure. The parameter is optional. If it is not specified, the flag's value is set to false. |
|
smtpUserName |
NA |
A user name used to access the SMTP server when authentication is required. The parameter is optional. If it is not specified, Anonymous access is used. The parameter can be encrypted. |
|
smtpPassword |
NA |
A password used to access the SMTP server when authentication is required. The parameter is optional. If it is not specified, Anonymous access is used. The parameter can be encrypted. |
|
smtpDomain |
NA |
A domain name used to access the SMTP server. The parameter is optional. |
The following is a sample of an SMTP Listener configuration:
<WDA.SystemApplication.Configuration xmlns="WDA.SystemApplication.Configuration">
...
<EventLogMonitor logName="WDA Applications" enabled="true">
...
<Listeners sender="sender@email.com" receiver="reciever@email.com">
...
<Listener name="SMTP" handler="WDA.EventLogListeners.SmtpHandler, {wdaInstallPath}\Assemblies\Private\WDA.EventLogListeners.SmtpHandler.02.dll"
serverAddress="mySMTP.server.com" serverPort="25" smtpEnableSsl="true" smtpUserName="..."
smtpPassword="..." smtpDomain="myDomain.com" />
...
</Listeners>
...
<!-- EventLog sources to be monitored -->
<EventSources receiver="reciever@email.com" enabled="true" listener="SMTP">
<EventSource name="TechInfo Manager" />
<EventSource name="TechInfo Manager WebServices" />
<EventSource name="WDA System Application" />
...
</EventSources>
...
</EventLogMonitor>
...
</WDA.SystemApplication.Configuration>