Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Trace Mail Log

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

Activity

Total releases
9
First release
Dec 2025
Latest release
5 months ago
Releases (12 mo)
9 ▲ from 0
Maintenance
Active

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