Redirect all outbound email in a test environment
Send every outbound email from a test instance to one address, or stop outbound email entirely, so real people are not notified.
Redirect outbound email when you test with real users as requesters and assignees but must not email them. It is for administrators of development and test instances.
Before you begin
- You need the
administratorrole. - Plan to set the property on every sub-production instance. Its shipped description says it is for all sub-production systems.
- Choose the address that receives every redirected email. It cannot be an address Servicely itself reads from or sends as.
Steps
-
Go to Administration → Application → Application properties and open the property with Application properties key
notification.email.outbound.override. -
In Application properties value, enter the address that should receive all outbound email. To stop outbound email entirely instead, enter
EMAIL_DISABLED_OVERRIDE.
The notification.email.outbound.override application property with a test address in Application properties value. -
Save the record. Servicely rejects any value that is not blank,
EMAIL_DISABLED_OVERRIDEor a valid email address.
| Property | Default | Values |
|---|---|---|
notification.email.outbound.override |
Blank | Blank sends email to its real recipients. An email address receives every outbound email. EMAIL_DISABLED_OVERRIDE sends no email. |
Result
Notifications still build their recipients, subject and body as usual. When the outbound job sends them, every email goes to the override address instead of its recipients, or nowhere with EMAIL_DISABLED_OVERRIDE. Clear the value to restore normal delivery. The property is global, so it affects every notification and every outbound messaging account on the instance.
