In Mendix, you cannot currently add a raw email address or a Distribution List (DL) directly to the platform's native environment alerts. These are hardcoded to send only to users with specific project roles.
Here are the two ways to achieve this:
1. The "Platform" Workaround (Easiest)
Mendix sends alerts to anyone with the Monitoring permission enabled in the Project Team settings.
- Create a Service Account: Create a new user account in your Mendix Project Team using the DL’s email address.
- Assign Permissions: Give this "user" the Technical Contact role or ensure the Monitoring checkbox is checked in their team settings.
- Result: Mendix treats the DL as a single team member and broadcasts the alert to everyone in that list.
2. The "Email Connector" Approach (Most Flexible)
If you want granular control over what gets sent to the DL:
- Catch Errors in Microflows: Use a Global Error Handler or a specific error-handling route in your logic.
- Use the Email Connector: When a critical error occurs, call the
SendEmail action from the Email Connector module and set the "To" address as your Distribution List. - Result: You control the content, formatting, and triggers for these alerts.