Files
grafana/pkg/services/notifications
tonypowa 08f58b2346 Alerting: Handle placeholder email addresses gracefully in default contact point
This change prevents errors when using the default grafana-default-email
contact point with its placeholder email address <example@email.com>.

Changes include:
- Skip sending emails to placeholder addresses without throwing errors
- Show warning message in UI when testing contact points with placeholder emails
- Filter out placeholder addresses when mixed with valid email addresses
- Add unit tests for placeholder email detection and handling
- Handle empty recipient lists gracefully in SMTP client

The UI now displays a yellow warning box with a helpful message prompting
users to configure a valid email address.

Backend logs now show an informative message when skipping placeholder emails:
INFO Skipping email notification to placeholder address(es). Please configure
a valid email address in your contact point to receive alerts.
logger=ngalert.notifier.sender addresses=[<example@email.com>]
2025-11-03 17:02:29 +01:00
..
2024-02-16 04:58:05 -06:00
2024-02-16 04:58:05 -06:00