Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Trace Mail Log

87 sites No security coverage Drupal 10–11
View on drupal.org

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_log

Then 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

Tracked releases
9
Tracked since
Dec 2025
Latest release
7 months ago
Releases (12 mo)
9 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core 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 Jan 2, 2026
1.1.0-beta2 Pre-release 10–11 Jan 2, 2026
1.1.0-beta1 Pre-release 10–11 Jan 2, 2026
1.0.x-dev Dev 10–11 Jan 2, 2026
1.0.0 Stable 10–11 Dec 15, 2025
1.x-dev Dev 10–11 Dec 12, 2025
1.0.0-alpha1 Pre-release 10–11 Dec 11, 2025