Configure MeasEmailConfig.json template
- Last UpdatedApr 09, 2025
- 2 minute read
The email profile to be used for File Import should be specified in the configDesc entry CD_EMAIL_PROFILE. Multiple email profiles can be specified, but only the one specified in the CD_EMAIL_PROFILE will be used. This will be the account that sends the email to the recipients.
Warning: Do not modify the MeasEmailConfig.json template file located in %DNAInstallRoot%\MeasurementAdvisor\config\Settings. Copy the file to the %DNADataRoot% directory and configure the email profiles there.
-
If the MeasEmailConfig.json file does not exist in %DNADataRoot%\MeasurementAdvisor\config\Settings, copy the file in %DNAInstallRoot%\MeasurementAdvisor\config\Settings to %DNADataRoot%\MeasurementAdvisor\config\Settings.
-
Edit the MeasEmailConfig.json file located in %DNADataRoot%\MeasurementAdvisor\config\Settings to define your configuration. For more information, see the table.
KeyName
Description
Name
Profile Name that has to be specified in the configDesc entry CD_EMAIL_PROFILE.
EmailAddress
The email address from which emails are being sent.
ReplyAddress
The location to which reply emails are being sent. This only needs to be specified in the event that it differs from the EmailAddress.
MailServerName
The SMTP email server name.
Port
The SMTP port.
UseDefaultCredentials
When set to true, the Username and Password fields will not be used.
Username
Username (used when UseDefaultCredentials is false).
EncryptedPassword
The password must be encrypted, and stored in %DNADataRoot%\MeasurementAdvisor\config\Settings\MeasEmailConfig.json (used when UseDefaultCredentials is false).
The password can be encrypted using SecretProtector.exe. For more information, see Prepare to import data into the Cloud database.
EnableSSL
-
When used in conjunction with Transport Layer Security (TLS), the port should be set to 587.
-
When used in conjunction with the Secure Socket Layer (SSL), the port should be set to 465.
In the event that a connection timeout issue is received when connecting to the port and IP address, as in the following example:
{"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <XXX.XXX.X.XXX>:587"}
Run the following PowerShell command in order to ensure the port is not blocked:
"Test-NetConnection -ComputerName <smtp.domain.com> -Port 587"
If test connection fails, then please contact your computer administrator, as the issue might be related to firewall or security settings that can block the ports.
-