Mail server settings
- Last UpdatedAug 15, 2023
- 1 minute read
- PI System
- RtReports 5.0
- Visualization
The configuration settings for the SMTP mail server are found in the web.config file within the <mailSettings> section.
<mailSettings>
<smtp from="" deliveryMethod="network">
<network host="SMTP.mail.Server" port="25" userName="" password="" defaultCredentials="false"/>
</smtp>
</mailSettings>
Settings for the SMTP Mail server
|
Variable |
Setting |
|---|---|
|
from |
Specifies the sending email address |
|
deliveryMethod |
Delivery method for emails network and SpecifiedPickupDirectory |
|
host |
Name or IP address of the computer to use for SMTP transactions |
|
port |
Port number used for SMTP transactions |
|
userName |
User name part of authentication to the SMTP host |
|
password |
Password part of authentication to the SMTP host |
|
defaultCredentials |
Specifies whether the default network credentials on the host should be used for SMTP transactions |
The SMTP configuration and email can be tested by requesting an invalid ASPX page, such as https://[server]/RtReports/nopage.aspx. Any problems with the SMTP configuration will cause RtReports to write errors to the event log.
Error emails can be disabled by commenting out the section of the web.config file.
Note: Both the value of the eMailErrorTo entry and the value for from in the mailSettings section can contain an alias for the actual address in the form: ( and take the place of when embedded within an XML attribute). Using an alias can help you manage error messages by using routing rules.
Note: Virus scanning software and the Windows firewall must be configured to permit outbound SMTP traffic on the selected port.