MailSentra: Email Logging & Diagnostics

விளக்கம்

MailSentra logs WordPress email attempts and records the status, recipient, subject, trigger, caller, call stack, and source details for each message. It provides email statistics, weekly and monthly reports, source-based diagnostics, search and filtering, CSV export, and configurable retention.

Email body, headers, attachment paths, and request IP addresses can be logged when their individual settings are enabled. Body, header, attachment, and IP logging are disabled by default for new installations; enable only the fields needed for troubleshooting. MailSentra stores logged data in the site database and does not send it to an external service.

A “Sent” status means WordPress or PHPMailer reported a successful send operation. It does not confirm final inbox delivery or rule out a later bounce.

Features

  • Logs wp_mail() send attempts.
  • Records sent/failed result from WordPress mail hooks.
  • Dashboard statistics.
  • Seven-day activity chart.
  • Search and status filtering.
  • Detailed individual log view.
  • Manual resend as a new attempt from log details when the original message body was captured.
  • CSV export.
  • Optional body, header, attachment, and request IP logging; these fields are disabled by default for new installations.
  • Configurable retention period and optional maximum log count.
  • Optional database cleanup on uninstall.

Important

A “Sent” status means WordPress invoked its mail-success hook or a pre-send integration returned true. WordPress invokes the mail-success hook after PHPMailer returns normally, even if its send result is false, so this status does not guarantee successful transport or final inbox delivery. Check your mail provider’s logs for delivery confirmation.

MailSentra writes each log to the WordPress database before the mail attempt and updates its status from WordPress mail hooks. If a log write fails, email sending continues and MailSentra records a generic diagnostic in the PHP error log. Logging depends on the site’s database being available; a database outage or interrupted request can still prevent a log from being stored or leave it pending.

Expired logs are scheduled for cleanup at most once per day when the site receives traffic. Cleanup runs through WP-Cron in batches of up to 500 rows, scheduling follow-up batches as needed. An optional maximum log count removes the oldest records in these batches and is enforced during cleanup, not on each email send. WP-Cron requires site traffic unless a system cron is configured. Set retention days and maximum log count to 0 to disable both automatic deletion limits.

Development

Run php tests/run.php to execute the plugin’s focused standalone checks.

Screenshots

Installation

  1. Upload the plugin ZIP through Plugins > Add New > Upload Plugin.
  2. Activate the plugin.
  3. Go to MailSentra > Settings.
  4. Configure logging options.

அடிக்கடி கேட்கப்படும் கேள்விகள்

Does a Sent status confirm inbox delivery?

No. It means WordPress and PHPMailer reported a successful send operation. It does not confirm final delivery or rule out a later bounce.

What does Pending mean?

The email attempt was logged, but MailSentra has not recorded a sent or failed result yet. This can happen while sending or if the result hook does not run.

Where are email logs stored?

Logs are stored in this site’s WordPress database. MailSentra does not send logged data to an external service. Configure the logged fields and retention period in MailSentra > Settings.

Reviews

இந்த செருகுநிரலுக்கு மதிப்புரைகள் எதுவும் இல்லை.

பங்களிப்பாளர்கள் & உருவாக்குனர்கள்

“MailSentra: Email Logging & Diagnostics” is open source software. The following people have contributed to this plugin.

பங்களிப்பாளர்கள்

Changelog

2.0.2

  • Added scheduled, resumable retention cleanup in batches of up to 500 rows.
  • Added an optional maximum log-entry count to retention settings.

2.0.1

  • Optimized admin JavaScript loading for improved efficiency across MailSentra screens.

2.0.0

  • Added a protected test-email tool with PHPMailer diagnostics, transport details, and troubleshooting guidance.
  • Added raw email and sandboxed HTML preview views for captured messages.
  • Separated the plugin release version from its database schema version to avoid unnecessary database upgrades.

1.5.8

  • Added a sandboxed HTML preview for captured email-log messages. Remote content remains blocked by default.

1.5.7

  • Added a protected resend action that creates a new attempt without changing the original log status.
  • Improved log correlation for nested mail calls and added diagnostics when log writes fail.

1.5.6

  • Added weekly, current-month, and previous-month reports with source breakdowns.

1.5.3

  • Added source-based AJAX filters for email log counts and statuses.

1.5.0

  • Added weekly diagnostics by email source, including source totals, failure rates, and drill-down filters.

1.3.0

  • Added AJAX refresh and filtering for email statistics, charts, and log results.

1.2.7

  • Protected CSV exports from spreadsheet formula injection.
  • Added per-field privacy controls, optional IP logging, and suggested privacy-policy content.

1.2.6

  • Declared the minimum supported WordPress and PHP versions in the plugin metadata.

1.2.0

  • Added trigger-source detection and call-stack diagnostics for wp_mail() attempts.

1.1.0

  • Added log statistics and a detailed log-view interface.