trace_mail_log
10 sites
No security coverage
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