Overview
ITSM-NG provides a comprehensive notification system to alert users about events such as ticket updates, asset changes, and system alerts. Notifications can be sent via email or integrated chat systems.Notification Architecture
The notification system consists of:- Notifications: Define when and to whom notifications are sent
- Notification Templates: Define the content and format of notifications
- Notification Recipients: Specify who receives notifications
- Notification Events: Trigger conditions for sending notifications
Configuring Email Settings
Global Email Configuration
Configure sender
Set the default sender information:
- Administrator email: Default sender address
- Administrator name: Sender display name
- No-reply email: Address for notifications that don’t accept replies
Configure reply-to
Set reply-to address:
- Reply-to email: Where replies are sent
- Reply-to name: Display name for reply address
Entity-Specific Email Settings
Override global settings per entity:Creating Notifications
Configure notification
Set basic parameters:
- Name: Descriptive name
- Active: Enable/disable notification
- Type: Item type (Ticket, Change, Problem, etc.)
- Event: Trigger event (New, Update, Delete, etc.)
- Allow response: Enable email replies
Assign templates
Link notification templates:
- Click Notification templates tab
- Add templates for different notification methods (Email, Chat)
/inc/notification.class.php:200-289 for notification form implementation.
Notification Events
Common notification events by item type:Ticket Events
Asset Events
System Events
Notification Templates
Creating Templates
Add template
Click Add and configure:
- Name: Template name
- Type: Item type
- CSS: Custom styling (optional)
Template Tags
Use tags to insert dynamic content:Foreach Loops
Iterate over collections:Notification Recipients
Available Recipient Types
Recipients can be:User Types
Group Types
/inc/notification.class.php:43-134 for recipient type constants.
Configuring Recipients
Notification Queue
Viewing Pending Notifications
Check the notification queue:Processing Queue
Notifications are processed by cron:- queuednotification: Sends queued notifications
- queuednotificationclean: Cleans old queue entries
Ensure the
queuednotification cron task runs frequently (e.g., every minute) for timely delivery.Testing Notifications
Manual Testing
Advanced Configuration
Email Signature
Configure entity-specific signatures:
See
/inc/notification.class.php:644-655 for signature retrieval.
Notification Prefix
Customize the email subject prefix:Allow Response
Enable email parsing for responses:
See
/inc/notification.class.php:749-752 for allow response implementation.
Notification Modes
Email Notifications
Default mode, sends via SMTP or PHP mail():Chat Notifications
Integrate with chat platforms (Rocket.Chat, Slack, etc.):Troubleshooting
Notifications Not Sent
Check:- Notification is active
- Event matches configuration
- Recipients are configured
- Cron task is running
- SMTP settings are correct
- Queue is not stuck
Users Not Receiving
Verify:- User has valid email address
- User has notifications enabled in preferences
- User has rights to the entity
- User is not in date validity range
- Email is not marked as spam
Template Not Working
Confirm:- Template is assigned to notification
- Translation exists for user’s language
- Tags are correctly formatted
- HTML is valid
Best Practices
Notification Guidelines
- Don’t overnotify: Only send relevant notifications
- Clear subjects: Use descriptive subject lines with tags
- Test templates: Always test in non-production first
- Multilingual: Provide translations for all languages
- Plain text: Always include text version for HTML emails
- Unsubscribe: Respect user notification preferences
- Monitor queue: Check for stuck notifications regularly
- Log retention: Configure appropriate queue cleanup
Related Source Code
Key notification classes:- Notification:
/inc/notification.class.php - NotificationTarget:
/inc/notificationtarget.class.php - Notification events: Lines 43-134 for recipient types
- Email sending: NotificationMailing class
- Queue processing: QueuedNotification class