| 开发者 | bastianschwabe |
|---|---|
| 更新时间 | 2026年9月6日 23:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp_mail(): recipients, subject, body, attachments (file names only), and whether the send succeeded or failed. Unlike most mail loggers, it treats the log itself as what it is — a growing collection of personal data — and gives you the tools to keep it small.
You decide per field whether the recipient name, the recipient email address, the subject and the body are anonymized: never, after a retention period, or immediately when the entry is written. Immediately anonymized data never reaches the database at all. A second retention stage deletes old entries completely. Anonymization is irreversible.
Features
wp_mail(), including failed sends with their error messageneuedaten_pml_logged — action fired after an email has been written to the log, with the entry id and the stored valuesneuedaten_pml_settings — filter the resolved plugin settingsneuedaten_pml_capability — filter the capability required for all plugin screens (default manage_options)neuedaten_pml_retention_batch_size — filter how many entries each retention stage processes per cron run (default 500)/wp-content/plugins/ or install it through the Plugins screen.wp_mail() is logged.Emails are captured through the WordPress mail hooks (pre_wp_mail, wp_mail_succeeded, wp_mail_failed). SMTP plugins that build on wp_mail() are captured. A plugin that replaces the mail function entirely without firing these hooks bypasses the log.
The email was handed over for sending, but neither the success nor the failure signal arrived — typically because another plugin took over the delivery and did not report back. The email may well have been sent.
All log entries addressed to the requested email address are irreversibly anonymized: recipient name and address, subject and body are replaced. The entry itself remains, so send statistics stay intact while no personal data is left.
Set Body to Immediately on the settings screen. The message content is then replaced before the entry is written and never reaches the database — only metadata is logged.
No. The original values are overwritten in the database. There is no way to restore them.
No plugin can promise that. Privacy Mail Log gives you the tools — configurable retention, per-field anonymization, integration with the WordPress privacy tools — but compliance depends on your configuration and your processes. When in doubt, ask a professional.