Trace Mail Log
This module provides detailed logging and tracking for all outgoing emails from your Drupal site. It captures the full SMTP conversation, allowing you to verify delivery and troubleshoot issues by viewing email statuses, server responses, and historical data in a dashboard. Integrations are available for Webform submissions, and enterprise-ready features like configurable retention and granular permissions are included.
Trace Mail Log provides complete visibility into your Drupal site's outgoing emails. It works with Symfony Mailer, Mail System, or Drupal core mail to capture every email event, storing the full SMTP conversation so you can verify delivery and troubleshoot issues.
Unlike simple mail catchers, this module doesn't just intercept emails—it logs them as they flow through your actual mail transport, capturing real mail server responses.
Features
Key Features
Complete Email Tracking
- Automatic logging of all outgoing emails
- Full SMTP transcript capture with server responses
- Email lifecycle tracking: queued → sending → sent/failed
- Records sender, recipients (To/Cc/Bcc), subject, and response codes
Dashboard & Reporting
- At-a-glance statistics: emails sent today, this week, total
- Failure monitoring with quick access to recent errors
- Filterable log list (by status, event type, recipient)
- Sortable columns with AJAX-powered navigation
- Export to CSV or JSON for external analysis
Webform Integration
- Email status column in webform submission tables
- Color-coded indicators: sent (green), failed (red), pending (yellow)
- Click status to view full email log details
- Optional integration—enable only when needed
Enterprise Ready
- Configurable retention with automatic purging
- Secure storage of transcript files in private filesystem
- Granular permissions for viewing vs administering
- Privacy options: disable body logging if needed
Use Cases
- Email Delivery Verification: Confirm emails are accepted by SMTP servers
- Troubleshooting: Debug delivery failures with full SMTP transcripts
- Compliance & Audit: Maintain records of all outgoing communications
- Development: Test email workflows with detailed logging
Requirements
- Drupal 10.3+ or 11
- PHP 8.1+
Optional
- Symfony Mailer—for full SMTP transcript support
- Mail System—for basic mail logging with alternative transports
- Webform—for email status column in submission tables
Quick Start
composer require drupal/trace_mail_log
drush en trace_mail_logThen visit Admin > Configuration > System > Mail Log to view your email logs.
Documentation: See README.md in the module
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.1.2 | Stable | 10–11 | Jan 26, 2026 | ||
| 1.1.1 | Stable | 10–11 | Jan 12, 2026 | ||
| 1.1.0 | Stable | 10–11 | Optional Webform Integration | Jan 2, 2026 | |
| 1.1.0-beta2 | Pre-release | 10–11 | Jan 2, 2026 | ||
| 1.1.0-beta1 | Pre-release | 10–11 | Optional Webform Integration | Jan 2, 2026 | |
| 1.0.x-dev | Dev | 10–11 | Module now works with both Symfony Mailer (full SMTP transcript support) and Mail System/Core mail (basic logging) | Jan 2, 2026 | |
| 1.0.0 | Stable | 10–11 | Dec 15, 2025 | ||
| 1.x-dev | Dev | 10–11 | Comprehensive email audit logging for Symfony Mailer. Captures full transport transcripts, tracks delivery status, and provides filtering and export capabilities for debugging and compliance. | Dec 12, 2025 | |
| 1.0.0-alpha1 | Pre-release | 10–11 | Initial alpha release. | Dec 11, 2025 |