Suppress outgoing emails parameter value keeps getting reset to Suppress with download

Sometimes you may see on a UAT or DEV environment that the Suppress outgoing emails parameter is changed to the Suppress with download value:

The code responsible for this is located in the environmentChanged() method of the DocStartupManager class:

This code is executed if Docentric detects that the environment name has changed.

When change of environment name is detected it is assumed that database is copied from another environment (most commonly PROD) and some preventive actions are executed to prevent sending out unintended emails.

If these parameters value keeps changing it typically means that two environments use the same database which can be the case if you debug running Sandbox environment using development environment. Starting with Docentric version 3.4.8 you can disable environment change detection on development environment when debugging Sandbox. To do so, please follow the instructions in the yellow info box at the bottom of this how-to manual.

This issue will not appear on PROD environments, since there the environment name is never changed.