Drupal is a registered trademark of Dries Buytaert

trace_mail_log

10 sites No security coverage
View on drupal.org

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_log

Then visit Admin > Configuration > System > Mail Log to view your email logs.

Documentation: See README.md in the module

Activity

Total releases
9
First release
Dec 2025
Latest release
1 month ago
Release cadence
6 days
Stability
44% stable

Release Timeline

Releases

Version Type Release date
1.1.2 Stable Jan 26, 2026
1.1.1 Stable Jan 12, 2026
1.1.0 Stable Jan 2, 2026
1.1.0-beta2 Pre-release Jan 2, 2026
1.1.0-beta1 Pre-release Jan 2, 2026
1.0.x-dev Dev Jan 2, 2026
1.0.0 Stable Dec 15, 2025
1.x-dev Dev Dec 12, 2025
1.0.0-alpha1 Pre-release Dec 11, 2025