Intercepted emails (#654553)
It is now possible to intercept emails which are sent with ConSol CM before they are passed to the email server. The emails are not sent but displayed on the new Web Admin Suite page Intercepted emails in the Email menu, where the user can download them for inspecting their content.
This is useful for development and test systems where the emails sent in the course of the business process must be tested without risking sending emails to real customers, whose email addresses might be included in the test data.
If the emails are not needed anymore, the user can also delete them.
By default, the feature is active on development, test or stage systems, i.e. systems which have the system property system.flavour
of the module cmas-core-server
set to "dev", "test" or "stage". You can modify the system flavours on which emails are intercepted in the new system property mailSender.testArchive.flavour
of the module cmas-core-server
.
In addition, it is possible to define a whitelist with domains to which emails can be sent even if the system flavour is defined for interception. This can be done by adding the domains to the new system property mailSender.testArchive.whitelist
of the module cmas-core-server
.
The whitelist does not support regular expressions.